Unverified Commit 6258f322 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Make Fuchsia tools Dart 2 clean (#19727)

parent 68b0ba9d
......@@ -6,6 +6,7 @@ import 'dart:async';
import 'package:args/args.dart';
import 'package:flutter_tools/src/asset.dart';
import 'package:flutter_tools/src/base/context.dart';
import 'package:flutter_tools/src/base/file_system.dart' as libfs;
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_tools/src/base/platform.dart';
......@@ -28,8 +29,8 @@ const List<String> _kRequiredOptions = <String>[
];
Future<Null> main(List<String> args) {
return runInContext<Null>(() => run(args), overrides: <Type, dynamic>{
Usage: new DisabledUsage(),
return runInContext<Null>(() => run(args), overrides: <Type, Generator>{
Usage: () => new DisabledUsage(),
});
}
......
......@@ -6,6 +6,7 @@ import 'dart:async';
import 'package:args/args.dart';
import 'package:flutter_tools/src/base/common.dart';
import 'package:flutter_tools/src/base/context.dart';
import 'package:flutter_tools/src/base/file_system.dart';
import 'package:flutter_tools/src/base/io.dart';
import 'package:flutter_tools/src/cache.dart';
......@@ -32,8 +33,8 @@ const String _kOptionCoverage = 'coverage';
const String _kOptionCoveragePath = 'coverage-path';
void main(List<String> args) {
runInContext<Null>(() => run(args), overrides: <Type, dynamic>{
Usage: new DisabledUsage(),
runInContext<Null>(() => run(args), overrides: <Type, Generator>{
Usage: () => new DisabledUsage(),
});
}
......
......@@ -37,7 +37,7 @@ import 'version.dart';
Future<T> runInContext<T>(
FutureOr<T> runner(), {
Map<Type, dynamic> overrides,
Map<Type, Generator> overrides,
}) async {
return await context.run<T>(
name: 'global fallbacks',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment