Add missing trailing commas (#28673)
* add trailing commas on list/map/parameters
* add trailing commas on Invocation with nb of arg>1
* add commas for widget containing widgets
* add trailing commas if instantiation contains trailing comma
* revert bad change
diff --git a/packages/flutter_tools/bin/fuchsia_attach.dart b/packages/flutter_tools/bin/fuchsia_attach.dart
index 0180b73..eb91c2d 100644
--- a/packages/flutter_tools/bin/fuchsia_attach.dart
+++ b/packages/flutter_tools/bin/fuchsia_attach.dart
@@ -101,7 +101,7 @@
flutterPatchedSdk: flutterPatchedSdk,
),
HotRunnerConfig: () => HotRunnerConfig()..computeDartDependencies = false,
- }
+ },
);
}
diff --git a/packages/flutter_tools/lib/runner.dart b/packages/flutter_tools/lib/runner.dart
index 621cf63..90bf4d7 100644
--- a/packages/flutter_tools/lib/runner.dart
+++ b/packages/flutter_tools/lib/runner.dart
@@ -53,7 +53,7 @@
final String systemLocale = await intl_standalone.findSystemLocale();
intl.Intl.defaultLocale = intl.Intl.verifiedLocale(
systemLocale, intl.NumberFormat.localeExists,
- onFailure: (String _) => 'en_US'
+ onFailure: (String _) => 'en_US',
);
try {
diff --git a/packages/flutter_tools/lib/src/android/android_device.dart b/packages/flutter_tools/lib/src/android/android_device.dart
index 45e46bc..0a3b8a6 100644
--- a/packages/flutter_tools/lib/src/android/android_device.dart
+++ b/packages/flutter_tools/lib/src/android/android_device.dart
@@ -63,7 +63,7 @@
String id, {
this.productID,
this.modelID,
- this.deviceCodeName
+ this.deviceCodeName,
}) : super(id);
final String productID;
@@ -295,7 +295,7 @@
}
await runCheckedAsync(adbCommandForDevice(<String>[
- 'shell', 'echo', '-n', _getSourceSha1(app), '>', _getDeviceSha1Path(app)
+ 'shell', 'echo', '-n', _getSourceSha1(app), '>', _getDeviceSha1Path(app),
]));
return true;
}
@@ -505,7 +505,7 @@
/// no available timestamp. The format can be passed to logcat's -T option.
String get lastLogcatTimestamp {
final String output = runCheckedSync(adbCommandForDevice(<String>[
- 'shell', '-x', 'logcat', '-v', 'time', '-t', '1'
+ 'shell', '-x', 'logcat', '-v', 'time', '-t', '1',
]));
final Match timeMatch = _timeRegExp.firstMatch(output);
@@ -579,7 +579,7 @@
void parseADBDeviceOutput(
String text, {
List<AndroidDevice> devices,
- List<String> diagnostics
+ List<String> diagnostics,
}) {
// Check for error messages from adb
if (!text.contains('List of devices')) {
@@ -634,7 +634,7 @@
deviceID,
productID: info['product'],
modelID: info['model'] ?? deviceID,
- deviceCodeName: info['device']
+ deviceCodeName: info['device'],
));
}
} else {
@@ -651,7 +651,7 @@
_AdbLogReader(this.device) {
_linesController = StreamController<String>.broadcast(
onListen: _start,
- onCancel: _stop
+ onCancel: _stop,
);
}
@@ -707,7 +707,7 @@
RegExp(r'^[WEF]\/AndroidRuntime:\s+'),
RegExp(r'^[WEF]\/ActivityManager:\s+.*(\bflutter\b|\bdomokit\b|\bsky\b)'),
RegExp(r'^[WEF]\/System\.err:\s+'),
- RegExp(r'^[F]\/[\S^:]+:\s+')
+ RegExp(r'^[F]\/[\S^:]+:\s+'),
];
// 'F/libc(pid): Fatal signal 11'
diff --git a/packages/flutter_tools/lib/src/android/android_emulator.dart b/packages/flutter_tools/lib/src/android/android_emulator.dart
index 5d6daf8..ea54133 100644
--- a/packages/flutter_tools/lib/src/android/android_emulator.dart
+++ b/packages/flutter_tools/lib/src/android/android_emulator.dart
@@ -57,7 +57,7 @@
// seconds won't be recognized as such... :-/
return Future.any<void>(<Future<void>>[
launchResult,
- Future<void>.delayed(const Duration(seconds: 3))
+ Future<void>.delayed(const Duration(seconds: 3)),
]);
}
}
diff --git a/packages/flutter_tools/lib/src/android/android_sdk.dart b/packages/flutter_tools/lib/src/android/android_sdk.dart
index 73432f0..72545e0 100644
--- a/packages/flutter_tools/lib/src/android/android_sdk.dart
+++ b/packages/flutter_tools/lib/src/android/android_sdk.dart
@@ -72,7 +72,7 @@
String getAvdPath() {
final List<String> searchPaths = <String>[
- platform.environment['ANDROID_AVD_HOME']
+ platform.environment['ANDROID_AVD_HOME'],
];
if (platform.environment['HOME'] != null)
diff --git a/packages/flutter_tools/lib/src/android/apk.dart b/packages/flutter_tools/lib/src/android/apk.dart
index 4a0ded0..8b5b8d9 100644
--- a/packages/flutter_tools/lib/src/android/apk.dart
+++ b/packages/flutter_tools/lib/src/android/apk.dart
@@ -16,7 +16,7 @@
Future<void> buildApk({
@required FlutterProject project,
@required String target,
- BuildInfo buildInfo = BuildInfo.debug
+ BuildInfo buildInfo = BuildInfo.debug,
}) async {
if (!project.android.isUsingGradle) {
throwToolExit(
@@ -35,7 +35,7 @@
project: project,
buildInfo: buildInfo,
target: target,
- isBuildingBundle: false
+ isBuildingBundle: false,
);
androidSdk.reinitialize();
}
diff --git a/packages/flutter_tools/lib/src/android/app_bundle.dart b/packages/flutter_tools/lib/src/android/app_bundle.dart
index c8576c9..c1e94ab 100644
--- a/packages/flutter_tools/lib/src/android/app_bundle.dart
+++ b/packages/flutter_tools/lib/src/android/app_bundle.dart
@@ -17,7 +17,7 @@
Future<void> buildAppBundle({
@required FlutterProject project,
@required String target,
- BuildInfo buildInfo = BuildInfo.debug
+ BuildInfo buildInfo = BuildInfo.debug,
}) async {
if (!project.android.isUsingGradle) {
throwToolExit(
@@ -44,6 +44,6 @@
project: project,
buildInfo: buildInfo,
target: target,
- isBuildingBundle: true
+ isBuildingBundle: true,
);
}
diff --git a/packages/flutter_tools/lib/src/android/gradle.dart b/packages/flutter_tools/lib/src/android/gradle.dart
index 60fb758..af9b3e8 100644
--- a/packages/flutter_tools/lib/src/android/gradle.dart
+++ b/packages/flutter_tools/lib/src/android/gradle.dart
@@ -161,7 +161,7 @@
project = GradleProject(
<String>['debug', 'profile', 'release'],
<String>[], flutterProject.android.gradleAppOutV1Directory,
- flutterProject.android.gradleAppBundleOutV1Directory
+ flutterProject.android.gradleAppBundleOutV1Directory,
);
}
status.stop();
@@ -464,7 +464,7 @@
}
return line;
- }
+ },
);
status.stop();
diff --git a/packages/flutter_tools/lib/src/application_package.dart b/packages/flutter_tools/lib/src/application_package.dart
index 6cd1314..82816b7 100644
--- a/packages/flutter_tools/lib/src/application_package.dart
+++ b/packages/flutter_tools/lib/src/application_package.dart
@@ -85,7 +85,7 @@
String id,
@required this.file,
@required this.versionCode,
- @required this.launchActivity
+ @required this.launchActivity,
}) : assert(file != null),
assert(launchActivity != null),
super(id: id);
@@ -123,7 +123,7 @@
id: data.packageName,
file: apk,
versionCode: int.tryParse(data.versionCode),
- launchActivity: '${data.packageName}/${data.launchableActivityName}'
+ launchActivity: '${data.packageName}/${data.launchableActivityName}',
);
}
@@ -204,7 +204,7 @@
id: packageId,
file: apkFile,
versionCode: null,
- launchActivity: launchActivity
+ launchActivity: launchActivity,
);
}
diff --git a/packages/flutter_tools/lib/src/asset.dart b/packages/flutter_tools/lib/src/asset.dart
index 574e92d..2918097 100644
--- a/packages/flutter_tools/lib/src/asset.dart
+++ b/packages/flutter_tools/lib/src/asset.dart
@@ -44,7 +44,7 @@
String assetDirPath,
String packagesPath,
bool includeDefaultFonts = true,
- bool reportLicensedPackages = false
+ bool reportLicensedPackages = false,
});
}
@@ -92,7 +92,7 @@
String assetDirPath,
String packagesPath,
bool includeDefaultFonts = true,
- bool reportLicensedPackages = false
+ bool reportLicensedPackages = false,
}) async {
assetDirPath ??= getAssetBuildDirectory();
packagesPath ??= fs.path.absolute(PackageMap.globalPackagesPath);
@@ -128,7 +128,7 @@
packageMap,
flutterManifest,
assetBasePath,
- excludeDirs: <String>[assetDirPath, getBuildDirectory()]
+ excludeDirs: <String>[assetDirPath, getBuildDirectory()],
);
if (assetVariants == null)
@@ -290,7 +290,7 @@
result.add(_Asset(
baseDir: fs.path.join(Cache.flutterRoot, 'bin', 'cache', 'artifacts', 'material_fonts'),
relativeUri: Uri(path: entryUri.pathSegments.last),
- entryUri: entryUri
+ entryUri: entryUri,
));
}
}
@@ -395,7 +395,7 @@
FlutterManifest manifest,
bool includeDefaultFonts,
PackageMap packageMap, {
- String packageName
+ String packageName,
}) {
final List<Map<String, dynamic>> fonts = <Map<String, dynamic>>[];
if (manifest.usesMaterialDesign && includeDefaultFonts) {
@@ -526,7 +526,7 @@
FlutterManifest flutterManifest,
String assetBase, {
List<String> excludeDirs = const <String>[],
- String packageName
+ String packageName,
}) {
final Map<_Asset, List<_Asset>> result = <_Asset, List<_Asset>>{};
@@ -572,7 +572,7 @@
Map<_Asset, List<_Asset>> result,
Uri assetUri, {
List<String> excludeDirs = const <String>[],
- String packageName
+ String packageName,
}) {
final String directoryPath = fs.path.join(
assetBase, assetUri.toFilePath(windows: platform.isWindows));
@@ -604,7 +604,7 @@
Map<_Asset, List<_Asset>> result,
Uri assetUri, {
List<String> excludeDirs = const <String>[],
- String packageName
+ String packageName,
}) {
final _Asset asset = _resolveAsset(
packageMap,
diff --git a/packages/flutter_tools/lib/src/base/os.dart b/packages/flutter_tools/lib/src/base/os.dart
index 4cb0e5c..dd75337 100644
--- a/packages/flutter_tools/lib/src/base/os.dart
+++ b/packages/flutter_tools/lib/src/base/os.dart
@@ -62,7 +62,7 @@
const Map<String, String> osNames = <String, String>{
'macos': 'Mac OS',
'linux': 'Linux',
- 'windows': 'Windows'
+ 'windows': 'Windows',
};
final String osName = platform.operatingSystem;
return osNames.containsKey(osName) ? osNames[osName] : osName;
diff --git a/packages/flutter_tools/lib/src/base/process.dart b/packages/flutter_tools/lib/src/base/process.dart
index fff1252..c6ab59c 100644
--- a/packages/flutter_tools/lib/src/base/process.dart
+++ b/packages/flutter_tools/lib/src/base/process.dart
@@ -111,7 +111,7 @@
List<String> cmd, {
String workingDirectory,
bool allowReentrantFlutter = false,
- Map<String, String> environment
+ Map<String, String> environment,
}) {
_traceCommand(cmd, workingDirectory: workingDirectory);
return processManager.start(
@@ -137,13 +137,13 @@
bool trace = false,
RegExp filter,
StringConverter mapFunction,
- Map<String, String> environment
+ Map<String, String> environment,
}) async {
final Process process = await runCommand(
cmd,
workingDirectory: workingDirectory,
allowReentrantFlutter: allowReentrantFlutter,
- environment: environment
+ environment: environment,
);
final StreamSubscription<String> stdoutSubscription = process.stdout
.transform<String>(utf8.decoder)
@@ -193,7 +193,7 @@
List<String> command, {
String workingDirectory,
bool allowReentrantFlutter = false,
- Map<String, String> environment
+ Map<String, String> environment,
}) async {
final Process process = await runCommand(
command,
@@ -226,7 +226,7 @@
List<String> cmd, {
String workingDirectory,
bool allowReentrantFlutter = false,
- Map<String, String> environment
+ Map<String, String> environment,
}) async {
_traceCommand(cmd, workingDirectory: workingDirectory);
final ProcessResult results = await processManager.run(
@@ -243,7 +243,7 @@
List<String> cmd, {
String workingDirectory,
bool allowReentrantFlutter = false,
- Map<String, String> environment
+ Map<String, String> environment,
}) async {
final RunResult result = await runAsync(
cmd,
@@ -301,12 +301,12 @@
String runSync(
List<String> cmd, {
String workingDirectory,
- bool allowReentrantFlutter = false
+ bool allowReentrantFlutter = false,
}) {
return _runWithLoggingSync(
cmd,
workingDirectory: workingDirectory,
- allowReentrantFlutter: allowReentrantFlutter
+ allowReentrantFlutter: allowReentrantFlutter,
);
}
diff --git a/packages/flutter_tools/lib/src/build_runner/build_script_generator.dart b/packages/flutter_tools/lib/src/build_runner/build_script_generator.dart
index 053de60..137ef53 100644
--- a/packages/flutter_tools/lib/src/build_runner/build_script_generator.dart
+++ b/packages/flutter_tools/lib/src/build_runner/build_script_generator.dart
@@ -40,7 +40,7 @@
literalList(builders, refer('BuilderApplication', 'package:build_runner_core/build_runner_core.dart'))
.assignFinal('_builders')
.statement,
- _createMain()
+ _createMain(),
]));
final DartEmitter emitter = DartEmitter(Allocator.simplePrefixing());
try {
diff --git a/packages/flutter_tools/lib/src/bundle.dart b/packages/flutter_tools/lib/src/bundle.dart
index ac3d219..def7e44 100644
--- a/packages/flutter_tools/lib/src/bundle.dart
+++ b/packages/flutter_tools/lib/src/bundle.dart
@@ -165,7 +165,7 @@
String assetDirPath,
String packagesPath,
bool includeDefaultFonts = true,
- bool reportLicensedPackages = false
+ bool reportLicensedPackages = false,
}) async {
assetDirPath ??= getAssetBuildDirectory();
packagesPath ??= fs.path.absolute(PackageMap.globalPackagesPath);
@@ -177,7 +177,7 @@
assetDirPath: assetDirPath,
packagesPath: packagesPath,
includeDefaultFonts: includeDefaultFonts,
- reportLicensedPackages: reportLicensedPackages
+ reportLicensedPackages: reportLicensedPackages,
);
if (result != 0)
return null;
diff --git a/packages/flutter_tools/lib/src/cache.dart b/packages/flutter_tools/lib/src/cache.dart
index e1c1641..7f3aa7a 100644
--- a/packages/flutter_tools/lib/src/cache.dart
+++ b/packages/flutter_tools/lib/src/cache.dart
@@ -622,7 +622,7 @@
r'>'.codeUnitAt(0): '@gt@'.codeUnits,
r'"'.codeUnitAt(0): '@q@'.codeUnits,
r'|'.codeUnitAt(0): '@pip@'.codeUnits,
- r'?'.codeUnitAt(0): '@ques@'.codeUnits
+ r'?'.codeUnitAt(0): '@ques@'.codeUnits,
};
/// Given a name containing slashes, colons, and backslashes, expand it into
diff --git a/packages/flutter_tools/lib/src/codegen.dart b/packages/flutter_tools/lib/src/codegen.dart
index 105aac1..bc5f63b 100644
--- a/packages/flutter_tools/lib/src/codegen.dart
+++ b/packages/flutter_tools/lib/src/codegen.dart
@@ -194,7 +194,7 @@
trackWidgetCreation: trackWidgetCreation,
mainPath: mainPath,
targetProductVm: targetProductVm,
- extraFrontEndOptions: extraFrontEndOptions
+ extraFrontEndOptions: extraFrontEndOptions,
);
final File outputFile = fs.file(outputFilePath);
if (!await outputFile.exists()) {
diff --git a/packages/flutter_tools/lib/src/commands/analyze_base.dart b/packages/flutter_tools/lib/src/commands/analyze_base.dart
index 2e9acfb..00ddbf0 100644
--- a/packages/flutter_tools/lib/src/commands/analyze_base.dart
+++ b/packages/flutter_tools/lib/src/commands/analyze_base.dart
@@ -44,7 +44,7 @@
final Map<String, dynamic> data = <String, dynamic>{
'time': stopwatch.elapsedMilliseconds / 1000.0,
'issues': errorCount,
- 'missingDartDocs': membersMissingDocumentation
+ 'missingDartDocs': membersMissingDocumentation,
};
fs.file(benchmarkOut).writeAsStringSync(toPrettyJson(data));
printStatus('Analysis benchmark written to $benchmarkOut ($data).');
diff --git a/packages/flutter_tools/lib/src/commands/build_aot.dart b/packages/flutter_tools/lib/src/commands/build_aot.dart
index f541aae..d9243be 100644
--- a/packages/flutter_tools/lib/src/commands/build_aot.dart
+++ b/packages/flutter_tools/lib/src/commands/build_aot.dart
@@ -25,13 +25,13 @@
..addOption('output-dir', defaultsTo: getAotBuildDirectory())
..addOption('target-platform',
defaultsTo: 'android-arm',
- allowed: <String>['android-arm', 'android-arm64', 'ios']
+ allowed: <String>['android-arm', 'android-arm64', 'ios'],
)
..addFlag('quiet', defaultsTo: false)
..addFlag('build-shared-library',
negatable: false,
defaultsTo: false,
- help: 'Compile to a *.so file (requires NDK when building for Android).'
+ help: 'Compile to a *.so file (requires NDK when building for Android).',
)
..addMultiOption('ios-arch',
splitCommas: true,
diff --git a/packages/flutter_tools/lib/src/commands/build_bundle.dart b/packages/flutter_tools/lib/src/commands/build_bundle.dart
index fed385d..40a0279 100644
--- a/packages/flutter_tools/lib/src/commands/build_bundle.dart
+++ b/packages/flutter_tools/lib/src/commands/build_bundle.dart
@@ -28,7 +28,7 @@
..addOption('depfile', defaultsTo: defaultDepfilePath)
..addOption('target-platform',
defaultsTo: 'android-arm',
- allowed: <String>['android-arm', 'android-arm64', 'android-x86', 'android-x64', 'ios']
+ allowed: <String>['android-arm', 'android-arm64', 'android-x86', 'android-x64', 'ios'],
)
..addFlag('track-widget-creation',
hide: !verboseHelp,
diff --git a/packages/flutter_tools/lib/src/commands/create.dart b/packages/flutter_tools/lib/src/commands/create.dart
index a9eb527..faaf109 100644
--- a/packages/flutter_tools/lib/src/commands/create.dart
+++ b/packages/flutter_tools/lib/src/commands/create.dart
@@ -56,19 +56,19 @@
CreateCommand() {
argParser.addFlag('pub',
defaultsTo: true,
- help: 'Whether to run "flutter packages get" after the project has been created.'
+ help: 'Whether to run "flutter packages get" after the project has been created.',
);
argParser.addFlag('offline',
defaultsTo: false,
help: 'When "flutter packages get" is run by the create command, this indicates '
'whether to run it in offline mode or not. In offline mode, it will need to '
- 'have all dependencies already available in the pub cache to succeed.'
+ 'have all dependencies already available in the pub cache to succeed.',
);
argParser.addFlag(
'with-driver-test',
negatable: true,
defaultsTo: false,
- help: "Also add a flutter_driver dependency and generate a sample 'flutter drive' test."
+ help: "Also add a flutter_driver dependency and generate a sample 'flutter drive' test.",
);
argParser.addOption(
'template',
@@ -104,18 +104,18 @@
argParser.addOption(
'description',
defaultsTo: 'A new Flutter project.',
- help: 'The description to use for your new Flutter project. This string ends up in the pubspec.yaml file.'
+ help: 'The description to use for your new Flutter project. This string ends up in the pubspec.yaml file.',
);
argParser.addOption(
'org',
defaultsTo: 'com.example',
help: 'The organization responsible for your new Flutter project, in reverse domain name notation. '
- 'This string is used in Java package names and as prefix in the iOS bundle identifier.'
+ 'This string is used in Java package names and as prefix in the iOS bundle identifier.',
);
argParser.addOption(
'project-name',
defaultsTo: null,
- help: 'The project name for this new Flutter project. This must be a valid dart package name.'
+ help: 'The project name for this new Flutter project. This must be a valid dart package name.',
);
argParser.addOption(
'ios-language',
@@ -638,7 +638,7 @@
'test',
'utf',
'watcher',
- 'yaml'
+ 'yaml',
]);
/// Return null if the project name is legal. Return a validation message if
diff --git a/packages/flutter_tools/lib/src/commands/daemon.dart b/packages/flutter_tools/lib/src/commands/daemon.dart
index e0b8172..d6364b3 100644
--- a/packages/flutter_tools/lib/src/commands/daemon.dart
+++ b/packages/flutter_tools/lib/src/commands/daemon.dart
@@ -95,7 +95,7 @@
onDone: () {
if (!_onExitCompleter.isCompleted)
_onExitCompleter.complete(0);
- }
+ },
);
}
@@ -272,12 +272,12 @@
sendEvent('daemon.logMessage', <String, dynamic>{
'level': message.level,
'message': message.message,
- 'stackTrace': message.stackTrace.toString()
+ 'stackTrace': message.stackTrace.toString(),
});
} else {
sendEvent('daemon.logMessage', <String, dynamic>{
'level': message.level,
- 'message': message.message
+ 'message': message.message,
});
}
}
@@ -303,7 +303,7 @@
typedef _RunOrAttach = Future<void> Function({
Completer<DebugConnectionInfo> connectionInfoCompleter,
- Completer<void> appStartedCompleter
+ Completer<void> appStartedCompleter,
});
/// This domain responds to methods like [start] and [stop].
@@ -910,12 +910,12 @@
_sendLogEvent(<String, dynamic>{
'log': message,
'stackTrace': stackTrace.toString(),
- 'error': true
+ 'error': true,
});
} else {
_sendLogEvent(<String, dynamic>{
'log': message,
- 'error': true
+ 'error': true,
});
}
}
diff --git a/packages/flutter_tools/lib/src/commands/drive.dart b/packages/flutter_tools/lib/src/commands/drive.dart
index 2179381..8b1c742 100644
--- a/packages/flutter_tools/lib/src/commands/drive.dart
+++ b/packages/flutter_tools/lib/src/commands/drive.dart
@@ -295,7 +295,7 @@
'--packages=${PackageMap.globalPackagesPath}',
'-rexpanded',
]),
- environment: <String, String>{ 'VM_SERVICE_URL': observatoryUri }
+ environment: <String, String>{ 'VM_SERVICE_URL': observatoryUri },
);
if (result != 0)
throwToolExit('Driver tests failed: $result', exitCode: result);
diff --git a/packages/flutter_tools/lib/src/commands/logs.dart b/packages/flutter_tools/lib/src/commands/logs.dart
index e3d3c2b..3e0ec00 100644
--- a/packages/flutter_tools/lib/src/commands/logs.dart
+++ b/packages/flutter_tools/lib/src/commands/logs.dart
@@ -16,7 +16,7 @@
argParser.addFlag('clear',
negatable: false,
abbr: 'c',
- help: 'Clear log history before reading from logs.'
+ help: 'Clear log history before reading from logs.',
);
}
@@ -57,7 +57,7 @@
},
onError: (dynamic error) {
exitCompleter.complete(error is int ? error : 1);
- }
+ },
);
// When terminating, close down the log reader.
diff --git a/packages/flutter_tools/lib/src/commands/packages.dart b/packages/flutter_tools/lib/src/commands/packages.dart
index ab4a247..befbe87 100644
--- a/packages/flutter_tools/lib/src/commands/packages.dart
+++ b/packages/flutter_tools/lib/src/commands/packages.dart
@@ -36,7 +36,7 @@
requiresPubspecYaml();
argParser.addFlag('offline',
negatable: false,
- help: 'Use cached packages instead of accessing the network.'
+ help: 'Use cached packages instead of accessing the network.',
);
}
diff --git a/packages/flutter_tools/lib/src/commands/run.dart b/packages/flutter_tools/lib/src/commands/run.dart
index 6c59ab07..c79a8a8 100644
--- a/packages/flutter_tools/lib/src/commands/run.dart
+++ b/packages/flutter_tools/lib/src/commands/run.dart
@@ -47,7 +47,7 @@
'compiler up to that point. This file can be used in subsequent --dynamic builds '
'to precompile some code by the offline compiler. '
'This flag is only allowed when running as --dynamic --profile (recommended) or '
- '--debug (may include unwanted debug symbols).'
+ '--debug (may include unwanted debug symbols).',
)
..addOption('target-platform',
defaultsTo: 'default',
@@ -424,7 +424,7 @@
devices.length == 1
? getNameForTargetPlatform(await devices[0].targetPlatform)
: 'multiple',
- devices.length == 1 && await devices[0].isLocalEmulator ? 'emulator' : null
+ devices.length == 1 && await devices[0].isLocalEmulator ? 'emulator' : null,
],
endTimeOverride: appStartedTime,
);
diff --git a/packages/flutter_tools/lib/src/commands/upgrade.dart b/packages/flutter_tools/lib/src/commands/upgrade.dart
index f7240e0..6ba8ecd 100644
--- a/packages/flutter_tools/lib/src/commands/upgrade.dart
+++ b/packages/flutter_tools/lib/src/commands/upgrade.dart
@@ -31,7 +31,7 @@
Future<FlutterCommandResult> runCommand() async {
try {
await runCheckedAsync(<String>[
- 'git', 'rev-parse', '@{u}'
+ 'git', 'rev-parse', '@{u}',
], workingDirectory: Cache.flutterRoot);
} catch (e) {
throwToolExit('Unable to upgrade Flutter: no upstream repository configured.');
@@ -46,7 +46,7 @@
int code = await runCommandAndStreamOutput(
<String>['git', 'pull', '--ff-only'],
workingDirectory: Cache.flutterRoot,
- mapFunction: (String line) => matchesGitLine(line) ? null : line
+ mapFunction: (String line) => matchesGitLine(line) ? null : line,
);
if (code != 0)
@@ -63,7 +63,7 @@
fs.path.join('bin', 'flutter'), '--no-color', '--no-version-check', 'precache',
],
workingDirectory: Cache.flutterRoot,
- allowReentrantFlutter: true
+ allowReentrantFlutter: true,
);
printStatus('');
diff --git a/packages/flutter_tools/lib/src/commands/version.dart b/packages/flutter_tools/lib/src/commands/version.dart
index 18b1f43..22564de 100644
--- a/packages/flutter_tools/lib/src/commands/version.dart
+++ b/packages/flutter_tools/lib/src/commands/version.dart
@@ -36,7 +36,7 @@
Future<List<String>> getTags() async {
final RunResult runResult = await runCheckedAsync(
<String>['git', 'tag', '-l', 'v*'],
- workingDirectory: Cache.flutterRoot
+ workingDirectory: Cache.flutterRoot,
);
return runResult.toString().split('\n');
}
@@ -71,7 +71,7 @@
try {
await runCheckedAsync(
<String>['git', 'checkout', 'v$version'],
- workingDirectory: Cache.flutterRoot
+ workingDirectory: Cache.flutterRoot,
);
} catch (e) {
throwToolExit('Unable to checkout version branch for version $version.');
@@ -107,7 +107,7 @@
context: PubContext.pubUpgrade,
directory: projectRoot,
upgrade: true,
- checkLastModified: false
+ checkLastModified: false,
);
}
diff --git a/packages/flutter_tools/lib/src/compile.dart b/packages/flutter_tools/lib/src/compile.dart
index 1193a9a..dd255f5 100644
--- a/packages/flutter_tools/lib/src/compile.dart
+++ b/packages/flutter_tools/lib/src/compile.dart
@@ -324,7 +324,7 @@
this.typeDefinitions,
this.libraryUri,
this.klass,
- this.isStatic
+ this.isStatic,
) : super(completer);
String expression;
@@ -440,7 +440,7 @@
return _compile(
_mapFilename(request.mainPath, packageUriMapper),
request.outputPath,
- _mapFilename(request.packagesFilePath ?? _packagesPath, /* packageUriMapper= */ null)
+ _mapFilename(request.packagesFilePath ?? _packagesPath, /* packageUriMapper= */ null),
);
}
diff --git a/packages/flutter_tools/lib/src/dart/analysis.dart b/packages/flutter_tools/lib/src/dart/analysis.dart
index 863d290..59376bb 100644
--- a/packages/flutter_tools/lib/src/dart/analysis.dart
+++ b/packages/flutter_tools/lib/src/dart/analysis.dart
@@ -54,7 +54,7 @@
inStream.listen(_handleServerResponse);
_sendCommand('server.setSubscriptions', <String, dynamic>{
- 'subscriptions': <String>['STATUS']
+ 'subscriptions': <String>['STATUS'],
});
_sendCommand('analysis.setAnalysisRoots',
@@ -70,7 +70,7 @@
final String message = json.encode(<String, dynamic>{
'id': (++_id).toString(),
'method': method,
- 'params': params
+ 'params': params,
});
_process.stdin.writeln(message);
printTrace('==> $message');
diff --git a/packages/flutter_tools/lib/src/dart/pub.dart b/packages/flutter_tools/lib/src/dart/pub.dart
index 4de54f8..2f1957b 100644
--- a/packages/flutter_tools/lib/src/dart/pub.dart
+++ b/packages/flutter_tools/lib/src/dart/pub.dart
@@ -75,7 +75,7 @@
bool skipIfAbsent = false,
bool upgrade = false,
bool offline = false,
- bool checkLastModified = true
+ bool checkLastModified = true,
}) async {
directory ??= fs.currentDirectory.path;
diff --git a/packages/flutter_tools/lib/src/devfs.dart b/packages/flutter_tools/lib/src/devfs.dart
index 66b473a..05e9292 100644
--- a/packages/flutter_tools/lib/src/devfs.dart
+++ b/packages/flutter_tools/lib/src/devfs.dart
@@ -254,7 +254,7 @@
params: <String, dynamic> {
'fsName': fsName,
'uri': deviceUri.toString(),
- 'fileContents': fileContents
+ 'fileContents': fileContents,
},
);
} catch (error) {
@@ -384,7 +384,7 @@
VMService serviceProtocol,
this.fsName,
this.rootDirectory, {
- String packagesFilePath
+ String packagesFilePath,
}) : _operations = ServiceProtocolDevFSOperations(serviceProtocol),
_httpWriter = _DevFSHttpWriter(fsName, serviceProtocol) {
_packagesFilePath =
diff --git a/packages/flutter_tools/lib/src/doctor.dart b/packages/flutter_tools/lib/src/doctor.dart
index b65819d..be1475f 100644
--- a/packages/flutter_tools/lib/src/doctor.dart
+++ b/packages/flutter_tools/lib/src/doctor.dart
@@ -467,7 +467,7 @@
}
return ValidationResult(valid, messages,
- statusInfo: userMessages.flutterStatusInfo(version.channel, version.frameworkVersion, os.name, platform.localeName)
+ statusInfo: userMessages.flutterStatusInfo(version.channel, version.frameworkVersion, os.name, platform.localeName),
);
}
}
diff --git a/packages/flutter_tools/lib/src/emulator.dart b/packages/flutter_tools/lib/src/emulator.dart
index 3672d44..61f0c34 100644
--- a/packages/flutter_tools/lib/src/emulator.dart
+++ b/packages/flutter_tools/lib/src/emulator.dart
@@ -115,7 +115,7 @@
'avd',
'-n', name,
'-k', sdkId,
- '-d', device
+ '-d', device,
];
final ProcessResult runResult = processManager.runSync(args,
environment: androidSdk?.sdkManagerEnv);
@@ -136,7 +136,7 @@
getAvdManagerPath(androidSdk),
'list',
'device',
- '-c'
+ '-c',
];
final ProcessResult runResult = processManager.runSync(args,
environment: androidSdk?.sdkManagerEnv);
diff --git a/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart b/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart
index bb27e0c..ffbe9dd 100644
--- a/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart
+++ b/packages/flutter_tools/lib/src/fuchsia/fuchsia_device.dart
@@ -403,7 +403,7 @@
// for more explanation.
final List<String> command = <String>[
'ssh', '-6', '-F', fuchsiaArtifacts.sshConfig.absolute.path, '-nNT', '-vvv', '-f',
- '-L', '$hostPort:$_ipv4Loopback:$devicePort', device.id, 'true'
+ '-L', '$hostPort:$_ipv4Loopback:$devicePort', device.id, 'true',
];
final Process process = await processManager.start(command);
unawaited(process.exitCode.then((int exitCode) {
diff --git a/packages/flutter_tools/lib/src/ios/code_signing.dart b/packages/flutter_tools/lib/src/ios/code_signing.dart
index a29a97e..5bda757 100644
--- a/packages/flutter_tools/lib/src/ios/code_signing.dart
+++ b/packages/flutter_tools/lib/src/ios/code_signing.dart
@@ -94,7 +94,7 @@
/// project has a development team set in the project's build settings.
Future<Map<String, String>> getCodeSigningIdentityDevelopmentTeam({
BuildableIOSApp iosApp,
- bool usesTerminalUi = true
+ bool usesTerminalUi = true,
}) async{
final Map<String, String> buildSettings = iosApp.project.buildSettings;
if (buildSettings == null)
diff --git a/packages/flutter_tools/lib/src/ios/devices.dart b/packages/flutter_tools/lib/src/ios/devices.dart
index c4e092e..bc0e5ae 100644
--- a/packages/flutter_tools/lib/src/ios/devices.dart
+++ b/packages/flutter_tools/lib/src/ios/devices.dart
@@ -166,7 +166,7 @@
static String _checkForCommand(
String command, [
- String macInstructions = _kIdeviceinstallerInstructions
+ String macInstructions = _kIdeviceinstallerInstructions,
]) {
try {
command = runCheckedSync(<String>['which', command]).trim();
@@ -253,7 +253,7 @@
targetOverride: mainPath,
buildForDevice: true,
usesTerminalUi: usesTerminalUi,
- activeArch: iosArch
+ activeArch: iosArch,
);
if (!buildResult.success) {
printError('Could not build the precompiled application for the device.');
@@ -459,7 +459,7 @@
_IOSDeviceLogReader(this.device, ApplicationPackage app) {
_linesController = StreamController<String>.broadcast(
onListen: _start,
- onCancel: _stop
+ onCancel: _stop,
);
// Match for lines for the runner in syslog.
diff --git a/packages/flutter_tools/lib/src/ios/ios_workflow.dart b/packages/flutter_tools/lib/src/ios/ios_workflow.dart
index 98b4ef6..4ae1173 100644
--- a/packages/flutter_tools/lib/src/ios/ios_workflow.dart
+++ b/packages/flutter_tools/lib/src/ios/ios_workflow.dart
@@ -157,7 +157,7 @@
return ValidationResult(
<ValidationType>[xcodeStatus, packageManagerStatus].reduce(_mergeValidationTypes),
messages,
- statusInfo: xcodeVersionInfo
+ statusInfo: xcodeVersionInfo,
);
}
diff --git a/packages/flutter_tools/lib/src/ios/mac.dart b/packages/flutter_tools/lib/src/ios/mac.dart
index 1468f09..648547e 100644
--- a/packages/flutter_tools/lib/src/ios/mac.dart
+++ b/packages/flutter_tools/lib/src/ios/mac.dart
@@ -388,7 +388,7 @@
iosProject: project.ios,
iosEngineDir: flutterFrameworkDir(buildInfo.mode),
isSwift: project.ios.isSwift,
- dependenciesChanged: !await fingerprinter.doesFingerprintMatch()
+ dependenciesChanged: !await fingerprinter.doesFingerprintMatch(),
);
if (didPodInstall)
await fingerprinter.writeFingerprint();
@@ -449,7 +449,7 @@
<String>[
'CODE_SIGNING_ALLOWED=NO',
'CODE_SIGNING_REQUIRED=NO',
- 'CODE_SIGNING_IDENTITY=""'
+ 'CODE_SIGNING_IDENTITY=""',
]
);
}
@@ -499,7 +499,7 @@
final RunResult buildResult = await runAsync(
buildCommands,
workingDirectory: app.project.hostAppRoot.path,
- allowReentrantFlutter: true
+ allowReentrantFlutter: true,
);
// Notifies listener that no more output is coming.
scriptOutputPipeFile?.writeAsStringSync('all done');
@@ -720,7 +720,7 @@
'name': service['name'],
// Since we have already moved it to the Frameworks directory. Strip away
// the directory and basenames.
- 'framework': fs.path.basenameWithoutExtension(service['ios-framework'])
+ 'framework': fs.path.basenameWithoutExtension(service['ios-framework']),
}).toList();
final Map<String, dynamic> jsonObject = <String, dynamic>{ 'services' : jsonServices };
manifest.writeAsStringSync(json.encode(jsonObject), mode: FileMode.write, flush: true);
diff --git a/packages/flutter_tools/lib/src/ios/plist_utils.dart b/packages/flutter_tools/lib/src/ios/plist_utils.dart
index 31bb934..2b3b75c 100644
--- a/packages/flutter_tools/lib/src/ios/plist_utils.dart
+++ b/packages/flutter_tools/lib/src/ios/plist_utils.dart
@@ -27,7 +27,7 @@
try {
final List<String> args = <String>[
- executable, 'read', normalizedPlistPath
+ executable, 'read', normalizedPlistPath,
];
if (key != null && key.isNotEmpty){
args.add(key);
diff --git a/packages/flutter_tools/lib/src/ios/simulators.dart b/packages/flutter_tools/lib/src/ios/simulators.dart
index 525a1da..f521871 100644
--- a/packages/flutter_tools/lib/src/ios/simulators.dart
+++ b/packages/flutter_tools/lib/src/ios/simulators.dart
@@ -322,7 +322,7 @@
if (debuggingOptions.buildInfo.isDebug)
args.addAll(<String>[
'--enable-checked-mode',
- '--verify-entry-points'
+ '--verify-entry-points',
]);
if (debuggingOptions.startPaused)
args.add('--start-paused');
@@ -500,7 +500,7 @@
_IOSSimulatorLogReader(this.device, IOSApp app) {
_linesController = StreamController<String>.broadcast(
onListen: _start,
- onCancel: _stop
+ onCancel: _stop,
);
_appName = app == null ? null : app.name.replaceAll('.app', '');
}
diff --git a/packages/flutter_tools/lib/src/ios/xcodeproj.dart b/packages/flutter_tools/lib/src/ios/xcodeproj.dart
index 0a32c7f..1f0e0a4 100644
--- a/packages/flutter_tools/lib/src/ios/xcodeproj.dart
+++ b/packages/flutter_tools/lib/src/ios/xcodeproj.dart
@@ -156,7 +156,7 @@
fs.path.absolute(projectPath),
'-target',
target,
- '-showBuildSettings'
+ '-showBuildSettings',
], workingDirectory: projectPath);
return parseXcodeBuildSettings(out);
}
diff --git a/packages/flutter_tools/lib/src/linux/linux_device.dart b/packages/flutter_tools/lib/src/linux/linux_device.dart
index c9c991a..316b116 100644
--- a/packages/flutter_tools/lib/src/linux/linux_device.dart
+++ b/packages/flutter_tools/lib/src/linux/linux_device.dart
@@ -93,7 +93,7 @@
return const <Device>[];
}
return <Device>[
- LinuxDevice()
+ LinuxDevice(),
];
}
diff --git a/packages/flutter_tools/lib/src/macos/macos_device.dart b/packages/flutter_tools/lib/src/macos/macos_device.dart
index ac4c7bf..35cad44 100644
--- a/packages/flutter_tools/lib/src/macos/macos_device.dart
+++ b/packages/flutter_tools/lib/src/macos/macos_device.dart
@@ -110,7 +110,7 @@
}
final String pid = values[1];
final ProcessResult killResult = await processManager.run(<String>[
- 'kill', pid
+ 'kill', pid,
]);
succeeded &= killResult.exitCode == 0;
}
@@ -145,7 +145,7 @@
return const <Device>[];
}
return <Device>[
- MacOSDevice()
+ MacOSDevice(),
];
}
diff --git a/packages/flutter_tools/lib/src/project.dart b/packages/flutter_tools/lib/src/project.dart
index b2a0fde..91a0ef8 100644
--- a/packages/flutter_tools/lib/src/project.dart
+++ b/packages/flutter_tools/lib/src/project.dart
@@ -332,7 +332,7 @@
target,
<String, dynamic>{
'projectName': parent.manifest.appName,
- 'iosIdentifier': parent.manifest.iosBundleIdentifier
+ 'iosIdentifier': parent.manifest.iosBundleIdentifier,
},
printStatusWhenWriting: false,
overwriteExisting: true,
diff --git a/packages/flutter_tools/lib/src/resident_runner.dart b/packages/flutter_tools/lib/src/resident_runner.dart
index 2addb59..982ca22 100644
--- a/packages/flutter_tools/lib/src/resident_runner.dart
+++ b/packages/flutter_tools/lib/src/resident_runner.dart
@@ -144,21 +144,21 @@
Future<Uri> setupDevFS(
String fsName,
Directory rootDirectory, {
- String packagesFilePath
+ String packagesFilePath,
}) {
// One devFS per device. Shared by all running instances.
devFS = DevFS(
vmServices[0],
fsName,
rootDirectory,
- packagesFilePath: packagesFilePath
+ packagesFilePath: packagesFilePath,
);
return devFS.create();
}
List<Future<Map<String, dynamic>>> reloadSources(
String entryPath, {
- bool pause = false
+ bool pause = false,
}) {
final Uri deviceEntryUri = devFS.baseUri.resolveUri(fs.path.toUri(entryPath));
final Uri devicePackagesUri = devFS.baseUri.resolve('.packages');
@@ -167,7 +167,7 @@
final Future<Map<String, dynamic>> report = view.uiIsolate.reloadSources(
pause: pause,
rootLibUri: deviceEntryUri,
- packagesUri: devicePackagesUri
+ packagesUri: devicePackagesUri,
);
reports.add(report);
}
@@ -289,7 +289,7 @@
final TargetPlatform targetPlatform = await device.targetPlatform;
package = await ApplicationPackageFactory.instance.getPackageForPlatform(
targetPlatform,
- applicationBinary: hotRunner.applicationBinary
+ applicationBinary: hotRunner.applicationBinary,
);
if (package == null) {
@@ -343,7 +343,7 @@
final TargetPlatform targetPlatform = await device.targetPlatform;
package = await ApplicationPackageFactory.instance.getPackageForPlatform(
targetPlatform,
- applicationBinary: coldRunner.applicationBinary
+ applicationBinary: coldRunner.applicationBinary,
);
final String modeName = coldRunner.debuggingOptions.buildInfo.friendlyModeName;
@@ -427,7 +427,7 @@
dillOutputPath: dillOutputPath,
trackWidgetCreation: trackWidgetCreation,
projectRootPath: projectRootPath,
- pathToReload: pathToReload
+ pathToReload: pathToReload,
);
} on DevFSException {
devFSStatus.cancel();
@@ -751,7 +751,7 @@
// futures either because they just print to logger and is not critical.
unawaited(service.done.then<void>(
_serviceProtocolDone,
- onError: _serviceProtocolError
+ onError: _serviceProtocolError,
).whenComplete(_serviceDisconnected));
}
}
diff --git a/packages/flutter_tools/lib/src/run_cold.dart b/packages/flutter_tools/lib/src/run_cold.dart
index 87b6213..a6ef97a 100644
--- a/packages/flutter_tools/lib/src/run_cold.dart
+++ b/packages/flutter_tools/lib/src/run_cold.dart
@@ -44,7 +44,7 @@
Completer<DebugConnectionInfo> connectionInfoCompleter,
Completer<void> appStartedCompleter,
String route,
- bool shouldBuild = true
+ bool shouldBuild = true,
}) async {
final bool prebuiltMode = applicationBinary != null;
if (!prebuiltMode) {
diff --git a/packages/flutter_tools/lib/src/run_hot.dart b/packages/flutter_tools/lib/src/run_hot.dart
index cae7e4f..53a4f36 100644
--- a/packages/flutter_tools/lib/src/run_hot.dart
+++ b/packages/flutter_tools/lib/src/run_hot.dart
@@ -217,7 +217,7 @@
DebugConnectionInfo(
httpUri: flutterDevices.first.observatoryUris.first,
wsUri: flutterDevices.first.vmServices.first.wsAddress,
- baseUri: baseUris.first.toString()
+ baseUri: baseUris.first.toString(),
)
);
}
@@ -286,7 +286,7 @@
Completer<DebugConnectionInfo> connectionInfoCompleter,
Completer<void> appStartedCompleter,
String route,
- bool shouldBuild = true
+ bool shouldBuild = true,
}) async {
if (!fs.isFileSync(mainPath)) {
String message = 'Tried to run $mainPath, but that file does not exist.';
@@ -356,7 +356,7 @@
final Uri uri = await device.setupDevFS(
fsName,
fs.directory(projectRootPath),
- packagesFilePath: packagesFilePath
+ packagesFilePath: packagesFilePath,
);
devFSUris.add(uri);
}
@@ -700,7 +700,7 @@
final Completer<DeviceReloadReport> completer = Completer<DeviceReloadReport>();
allReportsFutures.add(completer.future);
final List<Future<Map<String, dynamic>>> reportFutures = device.reloadSources(
- entryPath, pause: pause
+ entryPath, pause: pause,
);
unawaited(Future.wait(reportFutures).then(
(List<Map<String, dynamic>> reports) async {
diff --git a/packages/flutter_tools/lib/src/runner/flutter_command.dart b/packages/flutter_tools/lib/src/runner/flutter_command.dart
index a92cb7e..2d93bfb 100644
--- a/packages/flutter_tools/lib/src/runner/flutter_command.dart
+++ b/packages/flutter_tools/lib/src/runner/flutter_command.dart
@@ -168,7 +168,7 @@
void usesPortOptions() {
argParser.addOption(observatoryPortOption,
help: 'Listen to the given port for an observatory debugger connection.\n'
- 'Specifying port 0 (the default) will find a random free port.'
+ 'Specifying port 0 (the default) will find a random free port.',
);
_usesPortOption = true;
}
@@ -253,14 +253,14 @@
help: 'Filename of Dart compilation trace file. This file will be produced\n'
'by \'flutter run --dynamic --profile --train\' and consumed by subsequent\n'
'--dynamic builds such as \'flutter build apk --dynamic\' to precompile\n'
- 'some code by the offline compiler.'
+ 'some code by the offline compiler.',
);
argParser.addFlag('patch',
hide: !verboseHelp,
negatable: false,
help: 'Generate dynamic patch for current changes from baseline.\n'
'Dynamic patch is generated relative to baseline package.\n'
- 'This flag is only allowed when using --dynamic.\n'
+ 'This flag is only allowed when using --dynamic.\n',
);
}
@@ -273,7 +273,7 @@
'This optional setting allows several dynamic patches to coexist\n'
'for same baseline build, and is useful for canary and A-B testing\n'
'of dynamic patches.\n'
- 'This flag is only used when --dynamic --patch is specified.\n'
+ 'This flag is only used when --dynamic --patch is specified.\n',
);
argParser.addOption('patch-dir',
defaultsTo: 'public',
@@ -281,7 +281,7 @@
help: 'The directory where to store generated dynamic patches.\n'
'This directory can be deployed to a CDN such as Firebase Hosting.\n'
'It is recommended to store this directory in version control.\n'
- 'This flag is only used when --dynamic --patch is specified.\n'
+ 'This flag is only used when --dynamic --patch is specified.\n',
);
argParser.addFlag('baseline',
hide: !verboseHelp,
@@ -289,7 +289,7 @@
help: 'Save built package as baseline for future dynamic patching.\n'
'Built package, such as APK file on Android, is saved and '
'can be used to generate dynamic patches in later builds.\n'
- 'This flag is only allowed when using --dynamic.\n'
+ 'This flag is only allowed when using --dynamic.\n',
);
addDynamicBaselineFlags(verboseHelp: verboseHelp);
@@ -301,7 +301,7 @@
hide: !verboseHelp,
help: 'The directory where to store and find generated baseline packages.\n'
'It is recommended to store this directory in version control.\n'
- 'This flag is only used when --dynamic --baseline is specified.\n'
+ 'This flag is only used when --dynamic --baseline is specified.\n',
);
}
@@ -359,7 +359,7 @@
'flavor',
help: 'Build a custom app flavor as defined by platform-specific build setup.\n'
'Supports the use of product flavors in Android Gradle scripts.\n'
- 'Supports the use of custom Xcode schemes.'
+ 'Supports the use of custom Xcode schemes.',
);
}
diff --git a/packages/flutter_tools/lib/src/services.dart b/packages/flutter_tools/lib/src/services.dart
index 2eb5560..1a71757 100644
--- a/packages/flutter_tools/lib/src/services.dart
+++ b/packages/flutter_tools/lib/src/services.dart
@@ -64,7 +64,7 @@
'root': serviceRoot,
'name': service['name'],
'android-class': service['android-class'],
- 'ios-framework': service['ios-framework']
+ 'ios-framework': service['ios-framework'],
});
}
@@ -102,7 +102,7 @@
final List<Map<String, String>> services =
servicesIn.map<Map<String, String>>((Map<String, String> service) => <String, String>{
'name': service['name'],
- 'class': service['android-class']
+ 'class': service['android-class'],
}).toList();
final Map<String, dynamic> jsonObject = <String, dynamic>{ 'services': services };
diff --git a/packages/flutter_tools/lib/src/test/flutter_platform.dart b/packages/flutter_tools/lib/src/test/flutter_platform.dart
index 451cf1a..a17c008 100644
--- a/packages/flutter_tools/lib/src/test/flutter_platform.dart
+++ b/packages/flutter_tools/lib/src/test/flutter_platform.dart
@@ -963,7 +963,7 @@
const String observatoryString = 'Observatory listening on ';
for (Stream<List<int>> stream in <Stream<List<int>>>[
process.stderr,
- process.stdout
+ process.stdout,
]) {
stream
.transform<String>(utf8.decoder)
diff --git a/packages/flutter_tools/lib/src/tracing.dart b/packages/flutter_tools/lib/src/tracing.dart
index 485fb30..a4559f8 100644
--- a/packages/flutter_tools/lib/src/tracing.dart
+++ b/packages/flutter_tools/lib/src/tracing.dart
@@ -35,7 +35,7 @@
/// Stops tracing; optionally wait for first frame.
Future<Map<String, dynamic>> stopTracingAndDownloadTimeline({
- bool awaitFirstFrame = false
+ bool awaitFirstFrame = false,
}) async {
if (awaitFirstFrame) {
final Status status = logger.startProgress(
@@ -96,7 +96,7 @@
final List<Map<String, dynamic>> events =
List<Map<String, dynamic>>.from(timeline['traceEvents']);
final Map<String, dynamic> event = events.firstWhere(
- (Map<String, dynamic> event) => event['name'] == eventName, orElse: () => null
+ (Map<String, dynamic> event) => event['name'] == eventName, orElse: () => null,
);
return event == null ? null : event['ts'];
}
diff --git a/packages/flutter_tools/lib/src/vmservice.dart b/packages/flutter_tools/lib/src/vmservice.dart
index 9fe973e4a..f0d69eb 100644
--- a/packages/flutter_tools/lib/src/vmservice.dart
+++ b/packages/flutter_tools/lib/src/vmservice.dart
@@ -206,7 +206,7 @@
_peer.sendNotification('_registerService', <String, String>{
'service': 'compileExpression',
- 'alias': 'Flutter Tools'
+ 'alias': 'Flutter Tools',
});
}
}
@@ -885,7 +885,7 @@
Future<Map<String, dynamic>> writeDevFSFile(
String fsName, {
@required String path,
- @required List<int> fileContents
+ @required List<int> fileContents,
}) {
assert(path != null);
assert(fileContents != null);
@@ -932,7 +932,7 @@
'viewId': viewId,
'mainScript': main.toString(),
'packagesFile': packages.toString(),
- 'assetDirectory': assetsDirectory.toString()
+ 'assetDirectory': assetsDirectory.toString(),
});
}
@@ -1109,7 +1109,7 @@
// Inject the 'isolateId' parameter.
if (params == null) {
params = <String, dynamic>{
- 'isolateId': id
+ 'isolateId': id,
};
} else {
params['isolateId'] = id;
@@ -1154,7 +1154,7 @@
}) async {
try {
final Map<String, dynamic> arguments = <String, dynamic>{
- 'pause': pause
+ 'pause': pause,
};
if (rootLibUri != null) {
arguments['rootLibUri'] = rootLibUri.toString();
@@ -1311,7 +1311,7 @@
'ext.flutter.evict',
params: <String, dynamic>{
'value': assetPath,
- }
+ },
);
}
@@ -1451,7 +1451,7 @@
params: <String, dynamic>{
'isolateId': _uiIsolate.id,
'viewId': id,
- 'assetDirectory': assetsDirectory.toFilePath(windows: false)
+ 'assetDirectory': assetsDirectory.toFilePath(windows: false),
});
}
diff --git a/packages/flutter_tools/lib/src/vscode/vscode.dart b/packages/flutter_tools/lib/src/vscode/vscode.dart
index 94c9a04..f2fac47 100644
--- a/packages/flutter_tools/lib/src/vscode/vscode.dart
+++ b/packages/flutter_tools/lib/src/vscode/vscode.dart
@@ -121,7 +121,7 @@
fs.path.join(homeDirPath, 'Applications', 'Visual Studio Code - Insiders.app', 'Contents'),
'.vscode-insiders',
isInsiders: true,
- )
+ ),
]);
}
diff --git a/packages/flutter_tools/lib/src/windows/windows_device.dart b/packages/flutter_tools/lib/src/windows/windows_device.dart
index 005e100..5698952 100644
--- a/packages/flutter_tools/lib/src/windows/windows_device.dart
+++ b/packages/flutter_tools/lib/src/windows/windows_device.dart
@@ -93,7 +93,7 @@
return const <Device>[];
}
return <Device>[
- WindowsDevice()
+ WindowsDevice(),
];
}
diff --git a/packages/flutter_tools/test/analytics_test.dart b/packages/flutter_tools/test/analytics_test.dart
index a2befdd..79d9c26 100644
--- a/packages/flutter_tools/test/analytics_test.dart
+++ b/packages/flutter_tools/test/analytics_test.dart
@@ -107,7 +107,7 @@
expect(
verify(mockUsage.sendTiming(captureAny, captureAny, captureAny, label: captureAnyNamed('label'))).captured,
- <dynamic>['flutter', 'doctor', const Duration(milliseconds: 1000), 'success']
+ <dynamic>['flutter', 'doctor', const Duration(milliseconds: 1000), 'success'],
);
}, overrides: <Type, Generator>{
SystemClock: () => mockClock,
@@ -126,7 +126,7 @@
expect(
verify(mockUsage.sendTiming(captureAny, captureAny, captureAny, label: captureAnyNamed('label'))).captured,
- <dynamic>['flutter', 'doctor', const Duration(milliseconds: 1000), 'warning']
+ <dynamic>['flutter', 'doctor', const Duration(milliseconds: 1000), 'warning'],
);
}, overrides: <Type, Generator>{
SystemClock: () => mockClock,
diff --git a/packages/flutter_tools/test/android/android_emulator_test.dart b/packages/flutter_tools/test/android/android_emulator_test.dart
index 28046c1..0e2a3a0 100644
--- a/packages/flutter_tools/test/android/android_emulator_test.dart
+++ b/packages/flutter_tools/test/android/android_emulator_test.dart
@@ -30,7 +30,7 @@
final Map<String, String> properties = <String, String>{
'hw.device.name': name,
'hw.device.manufacturer': manufacturer,
- 'avd.ini.displayname': label
+ 'avd.ini.displayname': label,
};
final AndroidEmulator emulator =
AndroidEmulator(emulatorID, properties);
diff --git a/packages/flutter_tools/test/android/android_workflow_test.dart b/packages/flutter_tools/test/android/android_workflow_test.dart
index c988474..7a5e2c8 100644
--- a/packages/flutter_tools/test/android/android_workflow_test.dart
+++ b/packages/flutter_tools/test/android/android_workflow_test.dart
@@ -75,7 +75,7 @@
when(sdk.sdkManagerPath).thenReturn('/foo/bar/sdkmanager');
processManager.processFactory = processMetaFactory(<String>[
'[=======================================] 100% Computing updates... ',
- 'All SDK package licenses accepted.'
+ 'All SDK package licenses accepted.',
]);
final AndroidLicenseValidator licenseValidator = AndroidLicenseValidator();
diff --git a/packages/flutter_tools/test/artifacts_test.dart b/packages/flutter_tools/test/artifacts_test.dart
index 987546f..986bff0 100644
--- a/packages/flutter_tools/test/artifacts_test.dart
+++ b/packages/flutter_tools/test/artifacts_test.dart
@@ -29,33 +29,33 @@
testUsingContext('getArtifactPath', () {
expect(
artifacts.getArtifactPath(Artifact.flutterFramework, TargetPlatform.ios, BuildMode.release),
- fs.path.join(tempDir.path, 'bin', 'cache', 'artifacts', 'engine', 'ios-release', 'Flutter.framework')
+ fs.path.join(tempDir.path, 'bin', 'cache', 'artifacts', 'engine', 'ios-release', 'Flutter.framework'),
);
expect(
artifacts.getArtifactPath(Artifact.flutterTester),
- fs.path.join(tempDir.path, 'bin', 'cache', 'artifacts', 'engine', 'linux-x64', 'flutter_tester')
+ fs.path.join(tempDir.path, 'bin', 'cache', 'artifacts', 'engine', 'linux-x64', 'flutter_tester'),
);
}, overrides: <Type, Generator> {
Cache: () => Cache(rootOverride: tempDir),
- Platform: () => FakePlatform(operatingSystem: 'linux')
+ Platform: () => FakePlatform(operatingSystem: 'linux'),
});
testUsingContext('getEngineType', () {
expect(
artifacts.getEngineType(TargetPlatform.android_arm, BuildMode.debug),
- 'android-arm'
+ 'android-arm',
);
expect(
artifacts.getEngineType(TargetPlatform.ios, BuildMode.release),
- 'ios-release'
+ 'ios-release',
);
expect(
artifacts.getEngineType(TargetPlatform.darwin_x64),
- 'darwin-x64'
+ 'darwin-x64',
);
}, overrides: <Type, Generator> {
Cache: () => Cache(rootOverride: tempDir),
- Platform: () => FakePlatform(operatingSystem: 'linux')
+ Platform: () => FakePlatform(operatingSystem: 'linux'),
});
});
@@ -79,35 +79,35 @@
testUsingContext('getArtifactPath', () {
expect(
artifacts.getArtifactPath(Artifact.flutterFramework, TargetPlatform.ios, BuildMode.release),
- fs.path.join(tempDir.path, 'out', 'android_debug_unopt', 'Flutter.framework')
+ fs.path.join(tempDir.path, 'out', 'android_debug_unopt', 'Flutter.framework'),
);
expect(
artifacts.getArtifactPath(Artifact.flutterTester),
- fs.path.join(tempDir.path, 'out', 'android_debug_unopt', 'flutter_tester')
+ fs.path.join(tempDir.path, 'out', 'android_debug_unopt', 'flutter_tester'),
);
expect(
artifacts.getArtifactPath(Artifact.engineDartSdkPath),
- fs.path.join(tempDir.path, 'out', 'host_debug_unopt', 'dart-sdk')
+ fs.path.join(tempDir.path, 'out', 'host_debug_unopt', 'dart-sdk'),
);
}, overrides: <Type, Generator> {
- Platform: () => FakePlatform(operatingSystem: 'linux')
+ Platform: () => FakePlatform(operatingSystem: 'linux'),
});
testUsingContext('getEngineType', () {
expect(
artifacts.getEngineType(TargetPlatform.android_arm, BuildMode.debug),
- 'android_debug_unopt'
+ 'android_debug_unopt',
);
expect(
artifacts.getEngineType(TargetPlatform.ios, BuildMode.release),
- 'android_debug_unopt'
+ 'android_debug_unopt',
);
expect(
artifacts.getEngineType(TargetPlatform.darwin_x64),
- 'android_debug_unopt'
+ 'android_debug_unopt',
);
}, overrides: <Type, Generator> {
- Platform: () => FakePlatform(operatingSystem: 'linux')
+ Platform: () => FakePlatform(operatingSystem: 'linux'),
});
});
}
diff --git a/packages/flutter_tools/test/base/file_system_test.dart b/packages/flutter_tools/test/base/file_system_test.dart
index 3652e79..80cca02 100644
--- a/packages/flutter_tools/test/base/file_system_test.dart
+++ b/packages/flutter_tools/test/base/file_system_test.dart
@@ -92,7 +92,7 @@
expect(escapePath('foo\\bar\\cool.dart'), 'foo\\\\bar\\\\cool.dart');
expect(escapePath('C:/foo/bar/cool.dart'), 'C:/foo/bar/cool.dart');
}, overrides: <Type, Generator>{
- Platform: () => FakePlatform(operatingSystem: 'windows')
+ Platform: () => FakePlatform(operatingSystem: 'windows'),
});
testUsingContext('on Linux', () {
@@ -100,7 +100,7 @@
expect(escapePath('foo/bar/cool.dart'), 'foo/bar/cool.dart');
expect(escapePath('foo\\cool.dart'), 'foo\\cool.dart');
}, overrides: <Type, Generator>{
- Platform: () => FakePlatform(operatingSystem: 'linux')
+ Platform: () => FakePlatform(operatingSystem: 'linux'),
});
});
}
diff --git a/packages/flutter_tools/test/base/net_test.dart b/packages/flutter_tools/test/base/net_test.dart
index dd867ed..b379352 100644
--- a/packages/flutter_tools/test/base/net_test.dart
+++ b/packages/flutter_tools/test/base/net_test.dart
@@ -26,7 +26,7 @@
'Download failed -- attempting retry 1 in 1 second...\n'
'Download failed -- attempting retry 2 in 2 seconds...\n'
'Download failed -- attempting retry 3 in 4 seconds...\n'
- 'Download failed -- attempting retry 4 in 8 seconds...\n'
+ 'Download failed -- attempting retry 4 in 8 seconds...\n',
);
});
expect(testLogger.errorText, isEmpty);
@@ -49,7 +49,7 @@
'Download failed -- attempting retry 1 in 1 second...\n'
'Download failed -- attempting retry 2 in 2 seconds...\n'
'Download failed -- attempting retry 3 in 4 seconds...\n'
- 'Download failed -- attempting retry 4 in 8 seconds...\n'
+ 'Download failed -- attempting retry 4 in 8 seconds...\n',
);
});
expect(testLogger.errorText, isEmpty);
@@ -72,7 +72,7 @@
'Download failed -- attempting retry 1 in 1 second...\n'
'Download failed -- attempting retry 2 in 2 seconds...\n'
'Download failed -- attempting retry 3 in 4 seconds...\n'
- 'Download failed -- attempting retry 4 in 8 seconds...\n'
+ 'Download failed -- attempting retry 4 in 8 seconds...\n',
);
});
expect(testLogger.errorText, isEmpty);
diff --git a/packages/flutter_tools/test/base/os_test.dart b/packages/flutter_tools/test/base/os_test.dart
index 21752a4..dcacba9 100644
--- a/packages/flutter_tools/test/base/os_test.dart
+++ b/packages/flutter_tools/test/base/os_test.dart
@@ -32,7 +32,7 @@
expect(utils.which(kExecutable), isNull);
}, overrides: <Type, Generator>{
ProcessManager: () => mockProcessManager,
- Platform: () => FakePlatform(operatingSystem: 'linux')
+ Platform: () => FakePlatform(operatingSystem: 'linux'),
});
testUsingContext('returns exactly one result', () async {
@@ -42,7 +42,7 @@
expect(utils.which(kExecutable).path, kPath1);
}, overrides: <Type, Generator>{
ProcessManager: () => mockProcessManager,
- Platform: () => FakePlatform(operatingSystem: 'linux')
+ Platform: () => FakePlatform(operatingSystem: 'linux'),
});
testUsingContext('returns all results for whichAll', () async {
@@ -55,7 +55,7 @@
expect(result[1].path, kPath2);
}, overrides: <Type, Generator>{
ProcessManager: () => mockProcessManager,
- Platform: () => FakePlatform(operatingSystem: 'linux')
+ Platform: () => FakePlatform(operatingSystem: 'linux'),
});
});
@@ -68,7 +68,7 @@
expect(utils.which(kExecutable), isNull);
}, overrides: <Type, Generator>{
ProcessManager: () => mockProcessManager,
- Platform: () => FakePlatform(operatingSystem: 'windows')
+ Platform: () => FakePlatform(operatingSystem: 'windows'),
});
testUsingContext('returns exactly one result', () async {
@@ -78,7 +78,7 @@
expect(utils.which(kExecutable).path, kPath1);
}, overrides: <Type, Generator>{
ProcessManager: () => mockProcessManager,
- Platform: () => FakePlatform(operatingSystem: 'windows')
+ Platform: () => FakePlatform(operatingSystem: 'windows'),
});
testUsingContext('returns all results for whichAll', () async {
@@ -91,7 +91,7 @@
expect(result[1].path, kPath2);
}, overrides: <Type, Generator>{
ProcessManager: () => mockProcessManager,
- Platform: () => FakePlatform(operatingSystem: 'windows')
+ Platform: () => FakePlatform(operatingSystem: 'windows'),
});
});
}
diff --git a/packages/flutter_tools/test/base/process_test.dart b/packages/flutter_tools/test/base/process_test.dart
index 2139a54..c4be308 100644
--- a/packages/flutter_tools/test/base/process_test.dart
+++ b/packages/flutter_tools/test/base/process_test.dart
@@ -87,7 +87,7 @@
Logger: () => mockLogger,
ProcessManager: () => mockProcessManager,
OutputPreferences: () => OutputPreferences(wrapText: true, wrapColumn: 40),
- Platform: () => FakePlatform.fromPlatform(const LocalPlatform())..stdoutSupportsAnsi = false
+ Platform: () => FakePlatform.fromPlatform(const LocalPlatform())..stdoutSupportsAnsi = false,
});
});
}
diff --git a/packages/flutter_tools/test/build_runner/code_generating_kernel_compiler.dart b/packages/flutter_tools/test/build_runner/code_generating_kernel_compiler.dart
index 4dbd4d5..c5381a2 100644
--- a/packages/flutter_tools/test/build_runner/code_generating_kernel_compiler.dart
+++ b/packages/flutter_tools/test/build_runner/code_generating_kernel_compiler.dart
@@ -35,7 +35,7 @@
linkPlatformKernelIn: anyNamed('linkPlatformKernelIn'),
mainPath: anyNamed('mainPath'),
targetProductVm: anyNamed('targetProductVm'),
- trackWidgetCreation: anyNamed('trackWidgetCreation')
+ trackWidgetCreation: anyNamed('trackWidgetCreation'),
)).thenAnswer((Invocation invocation) async {
return CodeGenerationResult(fs.file('.packages'), fs.file('main.app.dill'));
});
diff --git a/packages/flutter_tools/test/cache_test.dart b/packages/flutter_tools/test/cache_test.dart
index 41840a3..079b045 100644
--- a/packages/flutter_tools/test/cache_test.dart
+++ b/packages/flutter_tools/test/cache_test.dart
@@ -63,7 +63,7 @@
expect(gradleWrapper.isUpToDateInner(), false);
}, overrides: <Type, Generator>{
Cache: ()=> mockCache,
- FileSystem: () => fs
+ FileSystem: () => fs,
});
testUsingContext('Gradle wrapper should be up to date, only if all cached artifact are available', () {
@@ -78,7 +78,7 @@
expect(gradleWrapper.isUpToDateInner(), true);
}, overrides: <Type, Generator>{
Cache: ()=> mockCache,
- FileSystem: () => fs
+ FileSystem: () => fs,
});
test('should not be up to date, if some cached artifact is not', () {
diff --git a/packages/flutter_tools/test/commands/analyze_continuously_test.dart b/packages/flutter_tools/test/commands/analyze_continuously_test.dart
index d03cf66..7fa979a 100644
--- a/packages/flutter_tools/test/commands/analyze_continuously_test.dart
+++ b/packages/flutter_tools/test/commands/analyze_continuously_test.dart
@@ -45,7 +45,7 @@
expect(errorCount, 0);
}, overrides: <Type, Generator>{
- OperatingSystemUtils: () => os
+ OperatingSystemUtils: () => os,
});
});
@@ -67,7 +67,7 @@
expect(errorCount, greaterThan(0));
}, overrides: <Type, Generator>{
- OperatingSystemUtils: () => os
+ OperatingSystemUtils: () => os,
});
testUsingContext('Returns no errors when source is error-free', () async {
@@ -84,7 +84,7 @@
await onDone;
expect(errorCount, 0);
}, overrides: <Type, Generator>{
- OperatingSystemUtils: () => os
+ OperatingSystemUtils: () => os,
});
}
diff --git a/packages/flutter_tools/test/commands/create_test.dart b/packages/flutter_tools/test/commands/create_test.dart
index 21fa293..8bf1604 100644
--- a/packages/flutter_tools/test/commands/create_test.dart
+++ b/packages/flutter_tools/test/commands/create_test.dart
@@ -86,7 +86,7 @@
testUsingContext('creates a module project correctly', () async {
await _createAndAnalyzeProject(projectDir, <String>[
- '--template=module'
+ '--template=module',
], <String>[
'.android/app/',
'.gitignore',
@@ -341,7 +341,7 @@
testUsingContext('module project with pub', () async {
return _createProject(projectDir, <String>[
- '--template=module'
+ '--template=module',
], <String>[
'.android/build.gradle',
'.android/Flutter/build.gradle',
@@ -531,11 +531,11 @@
FlutterProject project = await FlutterProject.fromDirectory(fs.directory(tmpProjectDir));
expect(
project.ios.productBundleIdentifier,
- 'com.example.helloFlutter'
+ 'com.example.helloFlutter',
);
expect(
project.android.applicationId,
- 'com.example.hello_flutter'
+ 'com.example.hello_flutter',
);
tmpProjectDir = fs.path.join(tempDir.path, 'test_abc');
@@ -543,11 +543,11 @@
project = await FlutterProject.fromDirectory(fs.directory(tmpProjectDir));
expect(
project.ios.productBundleIdentifier,
- 'abc.1.testAbc'
+ 'abc.1.testAbc',
);
expect(
project.android.applicationId,
- 'abc.u1.test_abc'
+ 'abc.u1.test_abc',
);
tmpProjectDir = fs.path.join(tempDir.path, 'flutter_project');
@@ -555,11 +555,11 @@
project = await FlutterProject.fromDirectory(fs.directory(tmpProjectDir));
expect(
project.ios.productBundleIdentifier,
- 'flutterProject.untitled'
+ 'flutterProject.untitled',
);
expect(
project.android.applicationId,
- 'flutter_project.untitled'
+ 'flutter_project.untitled',
);
}, overrides: <Type, Generator>{
FlutterVersion: () => mockFlutterVersion,
@@ -1061,7 +1061,7 @@
void onData(List<int> event), {
Function onError,
void onDone(),
- bool cancelOnError
+ bool cancelOnError,
}) {
return Stream<List<int>>.fromIterable(<List<int>>[result.codeUnits])
.listen(onData, onError: onError, onDone: onDone, cancelOnError: cancelOnError);
diff --git a/packages/flutter_tools/test/commands/daemon_test.dart b/packages/flutter_tools/test/commands/daemon_test.dart
index 4a1c26b..043de1e 100644
--- a/packages/flutter_tools/test/commands/daemon_test.dart
+++ b/packages/flutter_tools/test/commands/daemon_test.dart
@@ -37,7 +37,7 @@
daemon = Daemon(
commands.stream,
responses.add,
- notifyingLogger: notifyingLogger
+ notifyingLogger: notifyingLogger,
);
commands.add(<String, dynamic>{'id': 0, 'method': 'daemon.version'});
final Map<String, dynamic> response = await responses.stream.firstWhere(_notEvent);
@@ -101,7 +101,7 @@
daemon = Daemon(
commands.stream,
responses.add,
- notifyingLogger: notifyingLogger
+ notifyingLogger: notifyingLogger,
);
commands.add(<String, dynamic>{'id': 0, 'method': 'daemon.shutdown'});
return daemon.onExit.then<void>((int code) async {
@@ -148,8 +148,8 @@
'id': 0,
'method': 'app.callServiceExtension',
'params': <String, String> {
- 'methodName': 'ext.flutter.debugPaint'
- }
+ 'methodName': 'ext.flutter.debugPaint',
+ },
});
final Map<String, dynamic> response = await responses.stream.firstWhere(_notEvent);
expect(response['id'], 0);
@@ -185,7 +185,7 @@
daemon = Daemon(
commands.stream,
responses.add,
- notifyingLogger: notifyingLogger
+ notifyingLogger: notifyingLogger,
);
commands.add(<String, dynamic>{'id': 0, 'method': 'device.getDevices'});
final Map<String, dynamic> response = await responses.stream.firstWhere(_notEvent);
@@ -222,7 +222,7 @@
daemon = Daemon(
commands.stream,
responses.add,
- notifyingLogger: notifyingLogger
+ notifyingLogger: notifyingLogger,
);
final MockPollingDeviceDiscovery discoverer = MockPollingDeviceDiscovery();
@@ -255,7 +255,7 @@
commands.stream,
responses.add,
daemonCommand: command,
- notifyingLogger: notifyingLogger
+ notifyingLogger: notifyingLogger,
);
commands.add(<String, dynamic>{ 'id': 0, 'method': 'emulator.launch' });
@@ -272,7 +272,7 @@
daemon = Daemon(
commands.stream,
responses.add,
- notifyingLogger: notifyingLogger
+ notifyingLogger: notifyingLogger,
);
commands.add(<String, dynamic>{'id': 0, 'method': 'emulator.getEmulators'});
final Map<String, dynamic> response = await responses.stream.firstWhere(_notEvent);
@@ -287,15 +287,15 @@
test('OperationResult', () {
expect(
jsonEncodeObject(OperationResult.ok),
- '{"code":0,"message":""}'
+ '{"code":0,"message":""}',
);
expect(
jsonEncodeObject(OperationResult(1, 'foo')),
- '{"code":1,"message":"foo"}'
+ '{"code":1,"message":"foo"}',
);
expect(
jsonEncodeObject(OperationResult(0, 'foo', hintMessage: 'my hint', hintId: 'myId')),
- '{"code":0,"message":"foo","hintMessage":"my hint","hintId":"myId"}'
+ '{"code":0,"message":"foo","hintMessage":"my hint","hintId":"myId"}',
);
});
});
diff --git a/packages/flutter_tools/test/commands/doctor_test.dart b/packages/flutter_tools/test/commands/doctor_test.dart
index 32a6e5c..dfa032e 100644
--- a/packages/flutter_tools/test/commands/doctor_test.dart
+++ b/packages/flutter_tools/test/commands/doctor_test.dart
@@ -24,7 +24,7 @@
final Generator _kNoColorOutputPlatform = () => FakePlatform.fromPlatform(const LocalPlatform())..stdoutSupportsAnsi = false;
final Map<Type, Generator> noColorTerminalOverride = <Type, Generator>{
- Platform: _kNoColorOutputPlatform
+ Platform: _kNoColorOutputPlatform,
};
void main() {
@@ -144,7 +144,7 @@
Platform: () => FakePlatform()
..environment = <String, String>{
'HTTP_PROXY': 'fakeproxy.local',
- 'NO_PROXY': 'localhost,127.0.0.1'
+ 'NO_PROXY': 'localhost,127.0.0.1',
},
});
@@ -159,7 +159,7 @@
Platform: () => FakePlatform()
..environment = <String, String>{
'http_proxy': 'fakeproxy.local',
- 'no_proxy': 'localhost,127.0.0.1'
+ 'no_proxy': 'localhost,127.0.0.1',
},
});
@@ -174,7 +174,7 @@
Platform: () => FakePlatform()
..environment = <String, String>{
'HTTP_PROXY': 'fakeproxy.local',
- 'NO_PROXY': '127.0.0.1'
+ 'NO_PROXY': '127.0.0.1',
},
});
@@ -189,7 +189,7 @@
Platform: () => FakePlatform()
..environment = <String, String>{
'HTTP_PROXY': 'fakeproxy.local',
- 'NO_PROXY': 'localhost'
+ 'NO_PROXY': 'localhost',
},
});
});
@@ -635,7 +635,7 @@
return <DoctorValidator>[
PassingValidator('Passing Validator'),
PassingValidator('Another Passing Validator'),
- PassingValidator('Providing validators is fun')
+ PassingValidator('Providing validators is fun'),
];
}
@@ -699,11 +699,11 @@
_validators = <DoctorValidator>[];
_validators.add(GroupedValidator(<DoctorValidator>[
PassingGroupedValidator('Category 1'),
- PassingGroupedValidator('Category 1')
+ PassingGroupedValidator('Category 1'),
]));
_validators.add(GroupedValidator(<DoctorValidator>[
PassingGroupedValidator('Category 2'),
- MissingGroupedValidator('Category 2')
+ MissingGroupedValidator('Category 2'),
]));
}
return _validators;
diff --git a/packages/flutter_tools/test/commands/format_test.dart b/packages/flutter_tools/test/commands/format_test.dart
index f3878cf..d20c73d 100644
--- a/packages/flutter_tools/test/commands/format_test.dart
+++ b/packages/flutter_tools/test/commands/format_test.dart
@@ -68,7 +68,7 @@
final CommandRunner<void> runner = createTestCommandRunner(command);
expect(runner.run(<String>[
- 'format', '--dry-run', '--set-exit-if-changed', srcFile.path
+ 'format', '--dry-run', '--set-exit-if-changed', srcFile.path,
]), throwsException);
final String shouldNotFormatted = srcFile.readAsStringSync();
diff --git a/packages/flutter_tools/test/commands/packages_test.dart b/packages/flutter_tools/test/commands/packages_test.dart
index d7a4718..2d37e95 100644
--- a/packages/flutter_tools/test/commands/packages_test.dart
+++ b/packages/flutter_tools/test/commands/packages_test.dart
@@ -82,7 +82,7 @@
expect(
fs.file(fs.path.join(projectPath, relPath)).readAsStringSync(),
contains(substring),
- reason: '$projectPath/$relPath has unexpected content'
+ reason: '$projectPath/$relPath has unexpected content',
);
}
diff --git a/packages/flutter_tools/test/crash_reporting_test.dart b/packages/flutter_tools/test/crash_reporting_test.dart
index cac269e..3d49ff2 100644
--- a/packages/flutter_tools/test/crash_reporting_test.dart
+++ b/packages/flutter_tools/test/crash_reporting_test.dart
@@ -70,12 +70,12 @@
value: (dynamic value) {
final List<String> pair = value;
return pair[1];
- }
+ },
);
return Response(
'test-report-id',
- 200
+ 200,
);
}));
diff --git a/packages/flutter_tools/test/dart/pub_get_test.dart b/packages/flutter_tools/test/dart/pub_get_test.dart
index f3552c2..eb09f26 100644
--- a/packages/flutter_tools/test/dart/pub_get_test.dart
+++ b/packages/flutter_tools/test/dart/pub_get_test.dart
@@ -40,7 +40,7 @@
time.elapse(const Duration(milliseconds: 500));
expect(testLogger.statusText,
'Running "flutter packages get" in /...\n'
- 'pub get failed (69) -- attempting retry 1 in 1 second...\n'
+ 'pub get failed (69) -- attempting retry 1 in 1 second...\n',
);
expect(processMock.lastPubEnvironment, contains('flutter_cli:flutter_tests'));
expect(processMock.lastPubCache, isNull);
@@ -48,13 +48,13 @@
expect(testLogger.statusText,
'Running "flutter packages get" in /...\n'
'pub get failed (69) -- attempting retry 1 in 1 second...\n'
- 'pub get failed (69) -- attempting retry 2 in 2 seconds...\n'
+ 'pub get failed (69) -- attempting retry 2 in 2 seconds...\n',
);
time.elapse(const Duration(seconds: 1));
expect(testLogger.statusText,
'Running "flutter packages get" in /...\n'
'pub get failed (69) -- attempting retry 1 in 1 second...\n'
- 'pub get failed (69) -- attempting retry 2 in 2 seconds...\n'
+ 'pub get failed (69) -- attempting retry 2 in 2 seconds...\n',
);
time.elapse(const Duration(seconds: 100)); // from t=0 to t=100
expect(testLogger.statusText,
@@ -65,7 +65,7 @@
'pub get failed (69) -- attempting retry 4 in 8 seconds...\n' // at t=5
'pub get failed (69) -- attempting retry 5 in 16 seconds...\n' // at t=13
'pub get failed (69) -- attempting retry 6 in 32 seconds...\n' // at t=29
- 'pub get failed (69) -- attempting retry 7 in 64 seconds...\n' // at t=61
+ 'pub get failed (69) -- attempting retry 7 in 64 seconds...\n', // at t=61
);
time.elapse(const Duration(seconds: 200)); // from t=0 to t=200
expect(testLogger.statusText,
@@ -79,7 +79,7 @@
'pub get failed (69) -- attempting retry 7 in 64 seconds...\n'
'pub get failed (69) -- attempting retry 8 in 64 seconds...\n' // at t=39
'pub get failed (69) -- attempting retry 9 in 64 seconds...\n' // at t=103
- 'pub get failed (69) -- attempting retry 10 in 64 seconds...\n' // at t=167
+ 'pub get failed (69) -- attempting retry 10 in 64 seconds...\n', // at t=167
);
});
expect(testLogger.errorText, isEmpty);
diff --git a/packages/flutter_tools/test/devfs_test.dart b/packages/flutter_tools/test/devfs_test.dart
index 16ccf40..db86a6b 100644
--- a/packages/flutter_tools/test/devfs_test.dart
+++ b/packages/flutter_tools/test/devfs_test.dart
@@ -432,7 +432,7 @@
'writeFile test lib/foo.txt.dill build/app.dill',
]);
expect(devFS.assetPathsToEvict, unorderedMatches(<String>[
- 'a.txt', 'b.txt'
+ 'a.txt', 'b.txt',
]));
devFS.assetPathsToEvict.clear();
expect(report.syncedBytes, 22);
diff --git a/packages/flutter_tools/test/emulator_test.dart b/packages/flutter_tools/test/emulator_test.dart
index 71469fb..2fdef5b 100644
--- a/packages/flutter_tools/test/emulator_test.dart
+++ b/packages/flutter_tools/test/emulator_test.dart
@@ -53,7 +53,7 @@
final List<Emulator> emulators = <Emulator>[
emulator1,
emulator2,
- emulator3
+ emulator3,
];
final TestEmulatorManager testEmulatorManager =
TestEmulatorManager(emulators);
@@ -204,7 +204,7 @@
bool includeParentEnvironment = true,
bool runInShell = false,
Encoding stdoutEncoding = systemEncoding,
- Encoding stderrEncoding = systemEncoding
+ Encoding stderrEncoding = systemEncoding,
}) {
final String program = command[0];
final List<String> args = command.sublist(1);
diff --git a/packages/flutter_tools/test/flutter_manifest_test.dart b/packages/flutter_tools/test/flutter_manifest_test.dart
index b4f4508..828bc6f 100644
--- a/packages/flutter_tools/test/flutter_manifest_test.dart
+++ b/packages/flutter_tools/test/flutter_manifest_test.dart
@@ -506,7 +506,7 @@
},
overrides: <Type, Generator>{
FileSystem: () => filesystem,
- }
+ },
);
}
@@ -517,13 +517,13 @@
testUsingContextAndFs('Validate manifest on Posix FS',
MemoryFileSystem(style: FileSystemStyle.posix), () {
assertSchemaIsReadable();
- }
+ },
);
testUsingContextAndFs('Validate manifest on Windows FS',
MemoryFileSystem(style: FileSystemStyle.windows), () {
assertSchemaIsReadable();
- }
+ },
);
});
diff --git a/packages/flutter_tools/test/forbidden_imports_test.dart b/packages/flutter_tools/test/forbidden_imports_test.dart
index 4a6fa02..7b8168b 100644
--- a/packages/flutter_tools/test/forbidden_imports_test.dart
+++ b/packages/flutter_tools/test/forbidden_imports_test.dart
@@ -83,7 +83,7 @@
final List<String> whitelistedPaths = <String>[
fs.path.join(flutterTools, 'test', 'src', 'build_runner'),
fs.path.join(flutterTools, 'lib', 'src', 'build_runner'),
- fs.path.join(flutterTools, 'lib', 'executable.dart')
+ fs.path.join(flutterTools, 'lib', 'executable.dart'),
];
bool _isNotWhitelisted(FileSystemEntity entity) => whitelistedPaths.every((String path) => !entity.path.contains(path));
diff --git a/packages/flutter_tools/test/fuchsia/fuchsa_device_test.dart b/packages/flutter_tools/test/fuchsia/fuchsa_device_test.dart
index 452fde7..7654d85 100644
--- a/packages/flutter_tools/test/fuchsia/fuchsa_device_test.dart
+++ b/packages/flutter_tools/test/fuchsia/fuchsa_device_test.dart
@@ -224,7 +224,7 @@
fuchsiaDevice,
expectedIsolateName,
(Uri uri) async => vmService,
- true // only poll once.
+ true, // only poll once.
);
when(fuchsiaDevice.servicePorts()).thenAnswer((Invocation invocation) async => <int>[1]);
when(portForwarder.forward(1)).thenAnswer((Invocation invocation) async => 2);
diff --git a/packages/flutter_tools/test/hot_test.dart b/packages/flutter_tools/test/hot_test.dart
index c14b458..f681f42 100644
--- a/packages/flutter_tools/test/hot_test.dart
+++ b/packages/flutter_tools/test/hot_test.dart
@@ -54,7 +54,7 @@
'success': false,
'details': <String, dynamic>{
'notices': <Map<String, dynamic>>[
- <String, dynamic>{ 'message': false, }
+ <String, dynamic>{ 'message': false, },
],
},
}), false);
@@ -141,7 +141,7 @@
when(mockDevice.supportsHotRestart).thenReturn(false);
// Trigger hot restart.
final List<FlutterDevice> devices = <FlutterDevice>[
- FlutterDevice(mockDevice, generator: residentCompiler, trackWidgetCreation: false)..devFS = mockDevFs
+ FlutterDevice(mockDevice, generator: residentCompiler, trackWidgetCreation: false)..devFS = mockDevFs,
];
final OperationResult result = await HotRunner(devices).restart(fullRestart: true);
// Expect hot restart failed.
@@ -201,7 +201,7 @@
when(mockDevice.supportsHotReload).thenReturn(true);
when(mockDevice.supportsHotRestart).thenReturn(true);
final List<FlutterDevice> devices = <FlutterDevice>[
- FlutterDevice(mockDevice, generator: residentCompiler, trackWidgetCreation: false)
+ FlutterDevice(mockDevice, generator: residentCompiler, trackWidgetCreation: false),
];
final OperationResult result = await HotRunner(devices).restart(fullRestart: true);
expect(result.isOk, false);
@@ -218,7 +218,7 @@
when(mockDevice.supportsHotRestart).thenReturn(true);
// Trigger hot restart.
final List<FlutterDevice> devices = <FlutterDevice>[
- FlutterDevice(mockDevice, generator: residentCompiler, trackWidgetCreation: false)..devFS = mockDevFs
+ FlutterDevice(mockDevice, generator: residentCompiler, trackWidgetCreation: false)..devFS = mockDevFs,
];
final OperationResult result = await HotRunner(devices).restart(fullRestart: true);
// Expect hot restart successful.
@@ -245,7 +245,7 @@
when(mockDevice.supportsHotRestart).thenReturn(true);
when(mockDevice.supportsStopApp).thenReturn(false);
final List<FlutterDevice> devices = <FlutterDevice>[
- FlutterDevice(mockDevice, generator: residentCompiler, trackWidgetCreation: false)
+ FlutterDevice(mockDevice, generator: residentCompiler, trackWidgetCreation: false),
];
await HotRunner(devices).cleanupAfterSignal();
expect(shutdownTestingConfig.shutdownHookCalled, true);
@@ -260,7 +260,7 @@
when(mockDevice.supportsHotRestart).thenReturn(true);
when(mockDevice.supportsStopApp).thenReturn(false);
final List<FlutterDevice> devices = <FlutterDevice>[
- FlutterDevice(mockDevice, generator: residentCompiler, trackWidgetCreation: false)
+ FlutterDevice(mockDevice, generator: residentCompiler, trackWidgetCreation: false),
];
await HotRunner(devices).preStop();
expect(shutdownTestingConfig.shutdownHookCalled, true);
diff --git a/packages/flutter_tools/test/integration/flutter_run_test.dart b/packages/flutter_tools/test/integration/flutter_run_test.dart
index be1150c..55d9db3 100644
--- a/packages/flutter_tools/test/integration/flutter_run_test.dart
+++ b/packages/flutter_tools/test/integration/flutter_run_test.dart
@@ -39,7 +39,7 @@
const ProcessManager _processManager = LocalProcessManager();
final ProcessResult _proc = await _processManager.run(
<String>[flutterBin, 'run', '-d', 'invalid-device-id'],
- workingDirectory: tempDir.path
+ workingDirectory: tempDir.path,
);
expect(_proc.stdout, isNot(contains('flutter has exited unexpectedly')));
diff --git a/packages/flutter_tools/test/integration/test_data/hot_reload_project.dart b/packages/flutter_tools/test/integration/test_data/hot_reload_project.dart
index ef85ac8..68de1d4 100644
--- a/packages/flutter_tools/test/integration/test_data/hot_reload_project.dart
+++ b/packages/flutter_tools/test/integration/test_data/hot_reload_project.dart
@@ -77,7 +77,7 @@
void uncommentHotReloadPrint() {
final String newMainContents = main.replaceAll(
'// printHotReloadWorked();',
- 'printHotReloadWorked();'
+ 'printHotReloadWorked();',
);
writeFile(fs.path.join(dir.path, 'lib', 'main.dart'), newMainContents);
}
diff --git a/packages/flutter_tools/test/integration/test_driver.dart b/packages/flutter_tools/test/integration/test_driver.dart
index dcb011d..a688cb4 100644
--- a/packages/flutter_tools/test/integration/test_driver.dart
+++ b/packages/flutter_tools/test/integration/test_driver.dart
@@ -502,7 +502,7 @@
_debugPrint('Performing ${ pause ? "paused " : "" }${ fullRestart ? "hot restart" : "hot reload" }...');
final dynamic hotReloadResponse = await _sendRequest(
'app.restart',
- <String, dynamic>{'appId': _currentRunningAppId, 'fullRestart': fullRestart, 'pause': pause}
+ <String, dynamic>{'appId': _currentRunningAppId, 'fullRestart': fullRestart, 'pause': pause},
);
_debugPrint('${ fullRestart ? "Hot restart" : "Hot reload" } complete.');
@@ -565,7 +565,7 @@
final Map<String, dynamic> request = <String, dynamic>{
'id': requestId,
'method': method,
- 'params': params
+ 'params': params,
};
final String jsonEncoded = json.encode(<Map<String, dynamic>>[request]);
_debugPrint(jsonEncoded, topic: '=stdin=>');
@@ -606,7 +606,7 @@
'test',
'--machine',
'-d',
- 'flutter-tester'
+ 'flutter-tester',
], script: testFile, withDebugger: withDebugger, pauseOnExceptions: pauseOnExceptions, pidFile: pidFile, beforeStart: beforeStart);
}
diff --git a/packages/flutter_tools/test/integration/test_utils.dart b/packages/flutter_tools/test/integration/test_utils.dart
index c312897..4af1c03 100644
--- a/packages/flutter_tools/test/integration/test_utils.dart
+++ b/packages/flutter_tools/test/integration/test_utils.dart
@@ -44,7 +44,7 @@
final List<String> command = <String>[
fs.path.join(getFlutterRoot(), 'bin', 'flutter'),
'packages',
- 'get'
+ 'get',
];
final Process process = await processManager.start(command, workingDirectory: folder);
final StringBuffer errorOutput = StringBuffer();
diff --git a/packages/flutter_tools/test/ios/cocoapods_test.dart b/packages/flutter_tools/test/ios/cocoapods_test.dart
index 78454d7..9bb1963 100644
--- a/packages/flutter_tools/test/ios/cocoapods_test.dart
+++ b/packages/flutter_tools/test/ios/cocoapods_test.dart
@@ -62,12 +62,12 @@
cocoaPodsUnderTest = CocoaPods();
pretendPodVersionIs('1.5.0');
fs.file(fs.path.join(
- Cache.flutterRoot, 'packages', 'flutter_tools', 'templates', 'cocoapods', 'Podfile-objc'
+ Cache.flutterRoot, 'packages', 'flutter_tools', 'templates', 'cocoapods', 'Podfile-objc',
))
..createSync(recursive: true)
..writeAsStringSync('Objective-C podfile template');
fs.file(fs.path.join(
- Cache.flutterRoot, 'packages', 'flutter_tools', 'templates', 'cocoapods', 'Podfile-swift'
+ Cache.flutterRoot, 'packages', 'flutter_tools', 'templates', 'cocoapods', 'Podfile-swift',
))
..createSync(recursive: true)
..writeAsStringSync('Swift podfile template');
diff --git a/packages/flutter_tools/test/ios/code_signing_test.dart b/packages/flutter_tools/test/ios/code_signing_test.dart
index 8c1fc5d..b205fde 100644
--- a/packages/flutter_tools/test/ios/code_signing_test.dart
+++ b/packages/flutter_tools/test/ios/code_signing_test.dart
@@ -108,7 +108,7 @@
'''
1) 86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 "iPhone Developer: Profile 1 (1111AAAA11)"
1 valid identities found''',
- ''
+ '',
));
when(mockProcessManager.runSync(
<String>['security', 'find-certificate', '-c', '1111AAAA11', '-p'],
@@ -170,7 +170,7 @@
2) da4b9237bacccdf19c0760cab7aec4a8359010b0 "iPhone Developer: Profile 2 (2222BBBB22)"
3) 5bf1fd927dfb8679496a2e6cf00cbe50c1c87145 "iPhone Developer: Profile 3 (3333CCCC33)"
3 valid identities found''',
- ''
+ '',
));
mockTerminalStdInStream =
Stream<String>.fromFuture(Future<String>.value('3'));
@@ -209,11 +209,11 @@
expect(
testLogger.statusText,
- contains('Please select a certificate for code signing [<bold>1</bold>|2|3|a]: 3')
+ contains('Please select a certificate for code signing [<bold>1</bold>|2|3|a]: 3'),
);
expect(
testLogger.statusText,
- contains('Signing iOS app for device deployment using developer identity: "iPhone Developer: Profile 3 (3333CCCC33)"')
+ contains('Signing iOS app for device deployment using developer identity: "iPhone Developer: Profile 3 (3333CCCC33)"'),
);
expect(testLogger.errorText, isEmpty);
verify(mockOpenSslStdIn.write('This is a mock certificate'));
@@ -245,7 +245,7 @@
2) da4b9237bacccdf19c0760cab7aec4a8359010b0 "iPhone Developer: Profile 2 (2222BBBB22)"
3) 5bf1fd927dfb8679496a2e6cf00cbe50c1c87145 "iPhone Developer: Profile 3 (3333CCCC33)"
3 valid identities found''',
- ''
+ '',
));
mockTerminalStdInStream =
Stream<String>.fromFuture(Future<String>.error(Exception('Cannot read from StdIn')));
@@ -314,7 +314,7 @@
2) da4b9237bacccdf19c0760cab7aec4a8359010b0 "iPhone Developer: Profile 2 (2222BBBB22)"
3) 5bf1fd927dfb8679496a2e6cf00cbe50c1c87145 "iPhone Developer: Profile 3 (3333CCCC33)"
3 valid identities found''',
- ''
+ '',
));
when(mockProcessManager.runSync(
<String>['security', 'find-certificate', '-c', '3333CCCC33', '-p'],
@@ -352,11 +352,11 @@
expect(
testLogger.statusText,
- contains('Found saved certificate choice "iPhone Developer: Profile 3 (3333CCCC33)". To clear, use "flutter config"')
+ contains('Found saved certificate choice "iPhone Developer: Profile 3 (3333CCCC33)". To clear, use "flutter config"'),
);
expect(
testLogger.statusText,
- contains('Signing iOS app for device deployment using developer identity: "iPhone Developer: Profile 3 (3333CCCC33)"')
+ contains('Signing iOS app for device deployment using developer identity: "iPhone Developer: Profile 3 (3333CCCC33)"'),
);
expect(testLogger.errorText, isEmpty);
verify(mockOpenSslStdIn.write('This is a mock certificate'));
@@ -385,7 +385,7 @@
2) da4b9237bacccdf19c0760cab7aec4a8359010b0 "iPhone Developer: Profile 2 (2222BBBB22)"
3) 5bf1fd927dfb8679496a2e6cf00cbe50c1c87145 "iPhone Developer: Profile 3 (3333CCCC33)"
3 valid identities found''',
- ''
+ '',
));
mockTerminalStdInStream =
Stream<String>.fromFuture(Future<String>.value('3'));
@@ -426,11 +426,11 @@
expect(
testLogger.errorText,
- contains('Saved signing certificate "iPhone Developer: Invalid Profile" is not a valid development certificate')
+ contains('Saved signing certificate "iPhone Developer: Invalid Profile" is not a valid development certificate'),
);
expect(
testLogger.statusText,
- contains('Certificate choice "iPhone Developer: Profile 3 (3333CCCC33)"')
+ contains('Certificate choice "iPhone Developer: Profile 3 (3333CCCC33)"'),
);
expect(signingConfigs, <String, String> {'DEVELOPMENT_TEAM':'4444DDDD44'});
verify(config.setValue('ios-signing-cert', 'iPhone Developer: Profile 3 (3333CCCC33)'));
diff --git a/packages/flutter_tools/test/ios/ios_workflow_test.dart b/packages/flutter_tools/test/ios/ios_workflow_test.dart
index 179799d..4692656 100644
--- a/packages/flutter_tools/test/ios/ios_workflow_test.dart
+++ b/packages/flutter_tools/test/ios/ios_workflow_test.dart
@@ -386,7 +386,7 @@
class CocoaPodsTestTarget extends CocoaPodsValidator {
CocoaPodsTestTarget({
- this.hasHomebrew = true
+ this.hasHomebrew = true,
});
@override
diff --git a/packages/flutter_tools/test/ios/mac_test.dart b/packages/flutter_tools/test/ios/mac_test.dart
index 83fd861..7f232e8 100644
--- a/packages/flutter_tools/test/ios/mac_test.dart
+++ b/packages/flutter_tools/test/ios/mac_test.dart
@@ -153,7 +153,7 @@
// Let `idevicescreenshot` fail with exit code 1.
when(mockProcessManager.run(<String>['idevicescreenshot', outputPath],
environment: null,
- workingDirectory: null
+ workingDirectory: null,
)).thenAnswer((_) => Future<ProcessResult>.value(ProcessResult(4, 1, '', '')));
expect(() async => await iMobileDevice.takeScreenshot(mockOutputFile), throwsA(anything));
@@ -170,7 +170,7 @@
await iMobileDevice.takeScreenshot(mockOutputFile);
verify(mockProcessManager.run(<String>['idevicescreenshot', outputPath],
environment: null,
- workingDirectory: null
+ workingDirectory: null,
));
}, overrides: <Type, Generator>{
ProcessManager: () => mockProcessManager,
@@ -442,7 +442,7 @@
const List<String> flutterAssetPbxProjLines = <String>[
'/* flutter_assets */',
'/* App.framework',
- 'another line'
+ 'another line',
];
const List<String> appFlxPbxProjLines = <String>[
diff --git a/packages/flutter_tools/test/ios/simulators_test.dart b/packages/flutter_tools/test/ios/simulators_test.dart
index dcadc72..ba2d8be 100644
--- a/packages/flutter_tools/test/ios/simulators_test.dart
+++ b/packages/flutter_tools/test/ios/simulators_test.dart
@@ -195,7 +195,7 @@
when(mockXcode.minorVersion).thenReturn(1);
expect(deviceUnderTest.supportsScreenshot, false);
},
- overrides: <Type, Generator>{Xcode: () => mockXcode}
+ overrides: <Type, Generator>{Xcode: () => mockXcode},
);
testUsingContext(
@@ -217,7 +217,7 @@
fs.path.join('some', 'path', 'to', 'screenshot.png'),
],
environment: null,
- workingDirectory: null
+ workingDirectory: null,
));
},
overrides: <Type, Generator>{
@@ -225,7 +225,7 @@
// Test a real one. Screenshot doesn't require instance states.
SimControl: () => SimControl(),
Xcode: () => mockXcode,
- }
+ },
);
});
diff --git a/packages/flutter_tools/test/ios/xcode_backend_test.dart b/packages/flutter_tools/test/ios/xcode_backend_test.dart
index 26d0c63..4d4e958 100644
--- a/packages/flutter_tools/test/ios/xcode_backend_test.dart
+++ b/packages/flutter_tools/test/ios/xcode_backend_test.dart
@@ -32,7 +32,7 @@
'SOURCE_ROOT': '../../examples/hello_world',
'FLUTTER_ROOT': '../..',
'LOCAL_ENGINE': '/engine/src/out/ios_debug_unopt',
- 'CONFIGURATION': 'Release'
+ 'CONFIGURATION': 'Release',
};
// Can't use a debug build with a profile engine.
diff --git a/packages/flutter_tools/test/ios/xcodeproj_test.dart b/packages/flutter_tools/test/ios/xcodeproj_test.dart
index 2769cdc..ed4fa5e 100644
--- a/packages/flutter_tools/test/ios/xcodeproj_test.dart
+++ b/packages/flutter_tools/test/ios/xcodeproj_test.dart
@@ -110,7 +110,7 @@
fs.file(xcodebuild).deleteSync();
expect(xcodeProjectInterpreter.isInstalled, isFalse);
}, overrides: <Type, Generator>{
- Platform: () => fakePlatform('notMacOS')
+ Platform: () => fakePlatform('notMacOS'),
});
testUsingOsxContext('isInstalled is false when xcodebuild does not exist', () {
diff --git a/packages/flutter_tools/test/linux/linux_workflow_test.dart b/packages/flutter_tools/test/linux/linux_workflow_test.dart
index 8961a5c..2cd86f1 100644
--- a/packages/flutter_tools/test/linux/linux_workflow_test.dart
+++ b/packages/flutter_tools/test/linux/linux_workflow_test.dart
@@ -35,7 +35,7 @@
expect(linuxWorkflow.canLaunchDevices, true);
expect(linuxWorkflow.canListDevices, true);
}, overrides: <Type, Generator>{
- Platform: () => linuxWithFde
+ Platform: () => linuxWithFde,
});
});
}
diff --git a/packages/flutter_tools/test/runner/flutter_command_test.dart b/packages/flutter_tools/test/runner/flutter_command_test.dart
index 3b14447..f98371a 100644
--- a/packages/flutter_tools/test/runner/flutter_command_test.dart
+++ b/packages/flutter_tools/test/runner/flutter_command_test.dart
@@ -60,7 +60,7 @@
verify(usage.sendTiming(
captureAny, captureAny, captureAny,
label: captureAnyNamed('label'))).captured,
- <dynamic>['flutter', 'dummy', const Duration(milliseconds: 1000), null]
+ <dynamic>['flutter', 'dummy', const Duration(milliseconds: 1000), null],
);
},
overrides: <Type, Generator>{
@@ -93,7 +93,7 @@
ExitStatus.success,
// nulls should be cleaned up.
timingLabelParts: <String> ['blah1', 'blah2', null, 'blah3'],
- endTimeOverride: DateTime.fromMillisecondsSinceEpoch(1500)
+ endTimeOverride: DateTime.fromMillisecondsSinceEpoch(1500),
);
final DummyFlutterCommand flutterCommand = DummyFlutterCommand(
@@ -144,8 +144,8 @@
'flutter',
'dummy',
const Duration(milliseconds: 1000),
- 'fail'
- ]
+ 'fail',
+ ],
);
}
},
diff --git a/packages/flutter_tools/test/src/mocks.dart b/packages/flutter_tools/test/src/mocks.dart
index 0150d4c..b440e3f 100644
--- a/packages/flutter_tools/test/src/mocks.dart
+++ b/packages/flutter_tools/test/src/mocks.dart
@@ -31,7 +31,7 @@
id: 'io.flutter.android.mock',
file: fs.file('/mock/path/to/android/SkyShell.apk'),
versionCode: 1,
- launchActivity: 'io.flutter.android.mock.MockActivity'
+ launchActivity: 'io.flutter.android.mock.MockActivity',
),
iOS: BuildableIOSApp(MockIosProject())
);
@@ -488,7 +488,7 @@
List<String> typeDefinitions,
String libraryUri,
String klass,
- bool isStatic
+ bool isStatic,
) async {
return null;
}
diff --git a/packages/flutter_tools/test/tester/flutter_tester_test.dart b/packages/flutter_tools/test/tester/flutter_tester_test.dart
index 5b7aa26..a78f70f 100644
--- a/packages/flutter_tools/test/tester/flutter_tester_test.dart
+++ b/packages/flutter_tools/test/tester/flutter_tester_test.dart
@@ -161,7 +161,7 @@
Observatory listening on $observatoryUri
Hello!
'''
- .codeUnits
+ .codeUnits,
]));
when(mockKernelCompiler.compile(
diff --git a/packages/flutter_tools/tool/daemon_client.dart b/packages/flutter_tools/tool/daemon_client.dart
index 9acd3b2..00bc4e3 100644
--- a/packages/flutter_tools/tool/daemon_client.dart
+++ b/packages/flutter_tools/tool/daemon_client.dart
@@ -44,13 +44,13 @@
'deviceId': words[1],
'projectDirectory': words[2],
'launchMode': words[3],
- }
+ },
});
} else if (words.first == 'stop') {
if (words.length > 1) {
_send(<String, dynamic>{
'method': 'app.stop',
- 'params': <String, dynamic> { 'appId': words[1] }
+ 'params': <String, dynamic> { 'appId': words[1] },
});
} else {
_send(<String, dynamic>{'method': 'app.stop'});
@@ -59,7 +59,7 @@
if (words.length > 1) {
_send(<String, dynamic>{
'method': 'app.restart',
- 'params': <String, dynamic> { 'appId': words[1] }
+ 'params': <String, dynamic> { 'appId': words[1] },
});
} else {
_send(<String, dynamic>{'method': 'app.restart'});
@@ -72,8 +72,8 @@
_send(<String, dynamic>{
'method': 'emulator.launch',
'params': <String, dynamic>{
- 'emulatorId': words[1]
- }
+ 'emulatorId': words[1],
+ },
});
} else if (line == 'enable') {
_send(<String, dynamic>{'method': 'device.enable'});