Increase the strictness of our requiring explicit types (#7585)
...now that we have generic methods, their types need to be specified too.
This commit is contained in:
@@ -35,7 +35,7 @@ class CoverageCollector {
|
||||
|
||||
int pid = process.pid;
|
||||
int exitCode;
|
||||
process.exitCode.then((int code) {
|
||||
process.exitCode.then<Null>((int code) {
|
||||
exitCode = code;
|
||||
});
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ class FlutterPlatform extends PlatformPlugin {
|
||||
bool subprocessActive = false;
|
||||
bool controllerSinkClosed = false;
|
||||
try {
|
||||
controller.sink.done.then((_) { controllerSinkClosed = true; });
|
||||
controller.sink.done.whenComplete(() { controllerSinkClosed = true; });
|
||||
|
||||
// Prepare our WebSocket server to talk to the engine subproces.
|
||||
HttpServer server = await HttpServer.bind(_kHost, 0);
|
||||
@@ -524,10 +524,10 @@ class _FlutterPlatformStreamSinkWrapper<S> implements StreamSink<S> {
|
||||
|
||||
@override
|
||||
Future<dynamic> close() {
|
||||
Future.wait(<Future<dynamic>>[
|
||||
Future.wait<dynamic>(<Future<dynamic>>[
|
||||
_parent.close(),
|
||||
_shellProcessClosed,
|
||||
]).then(
|
||||
]).then<Null>(
|
||||
(List<dynamic> value) {
|
||||
_done.complete();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user