Created
June 16, 2021 23:00
-
-
Save munificent/7f0b5e0f287341f559a2f04cfd79c06e to your computer and use it in GitHub Desktop.
Diff of applying https://github.com/dart-lang/dart_style/pull/1033 to Flutter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/dev/benchmarks/macrobenchmarks/lib/src/web/bench_picture_recording.dart b/dev/benchmarks/macrobenchmarks/lib/src/web/bench_picture_recording.dart | |
index 187f160..e6e7584 100644 | |
--- a/dev/benchmarks/macrobenchmarks/lib/src/web/bench_picture_recording.dart | |
+++ b/dev/benchmarks/macrobenchmarks/lib/src/web/bench_picture_recording.dart | |
@@ -39,7 +39,7 @@ class BenchPictureRecording extends RawRecorder { | |
paragraph = (ParagraphBuilder(ParagraphStyle()) | |
..addText('abcd edfh ijkl mnop qrst uvwx yz')) | |
.build() | |
- ..layout(const ParagraphConstraints(width: 50)); | |
+ ..layout(const ParagraphConstraints(width: 50)); | |
} | |
@override | |
diff --git a/dev/bots/analyze.dart b/dev/bots/analyze.dart | |
index ae8e33c..2025ce2 100644 | |
--- a/dev/bots/analyze.dart | |
+++ b/dev/bots/analyze.dart | |
@@ -365,13 +365,13 @@ Future<void> verifyNoBadImportsInFlutter(String workingDirectory) async { | |
.map<String>((FileSystemEntity entity) => | |
path.basenameWithoutExtension(entity.path)) | |
.toList() | |
- ..sort(); | |
+ ..sort(); | |
final List<String> directories = Directory(srcPath) | |
.listSync() | |
.whereType<Directory>() | |
.map<String>((Directory entity) => path.basename(entity.path)) | |
.toList() | |
- ..sort(); | |
+ ..sort(); | |
if (!_listEquals<String>(packages, directories)) { | |
errors.add(<String>[ | |
'flutter/lib/*.dart does not match flutter/lib/src/*/:', | |
diff --git a/dev/bots/test.dart b/dev/bots/test.dart | |
index 00b8309..16da1a6 100644 | |
--- a/dev/bots/test.dart | |
+++ b/dev/bots/test.dart | |
@@ -407,7 +407,9 @@ Future<void> runForbiddenFromReleaseTests() async { | |
/// | |
/// Also does some checking about types included in hello_world. | |
Future<void> _runBuildTests() async { | |
- final List<FileSystemEntity> exampleDirectories = Directory(path.join(flutterRoot, 'examples')).listSync() | |
+ final List<FileSystemEntity> exampleDirectories = Directory( | |
+ path.join(flutterRoot, 'examples')) | |
+ .listSync() | |
..add(Directory( | |
path.join(flutterRoot, 'packages', 'integration_test', 'example'))) | |
..add(Directory(path.join( | |
@@ -418,9 +420,12 @@ Future<void> _runBuildTests() async { | |
path.join(flutterRoot, 'dev', 'integration_tests', 'channels'))) | |
..add(Directory(path.join( | |
flutterRoot, 'dev', 'integration_tests', 'hybrid_android_views'))) | |
- ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'flutter_gallery'))) | |
- ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'ios_platform_view_tests'))) | |
- ..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'non_nullable'))) | |
+ ..add(Directory( | |
+ path.join(flutterRoot, 'dev', 'integration_tests', 'flutter_gallery'))) | |
+ ..add(Directory(path.join( | |
+ flutterRoot, 'dev', 'integration_tests', 'ios_platform_view_tests'))) | |
+ ..add(Directory( | |
+ path.join(flutterRoot, 'dev', 'integration_tests', 'non_nullable'))) | |
..add(Directory(path.join(flutterRoot, 'dev', 'integration_tests', 'ui'))); | |
// The tests are randomly distributed into subshards so as to get a uniform | |
@@ -933,11 +938,11 @@ Future<void> _runWebUnitTests() async { | |
.where((String filePath) => | |
!kWebTestFileKnownFailures.contains(path.split(filePath).join('/'))) | |
.toList() | |
- // Finally we shuffle the list because we want the average cost per file to be uniformly | |
- // distributed. If the list is not sorted then different shards and batches may have | |
- // very different characteristics. | |
- // We use a constant seed for repeatability. | |
- ..shuffle(math.Random(0)); | |
+ // Finally we shuffle the list because we want the average cost per file to be uniformly | |
+ // distributed. If the list is not sorted then different shards and batches may have | |
+ // very different characteristics. | |
+ // We use a constant seed for repeatability. | |
+ ..shuffle(math.Random(0)); | |
assert(webShardCount >= 1); | |
final int testsPerShard = (allTests.length / webShardCount).ceil(); | |
diff --git a/dev/conductor/lib/proto/conductor_state.pb.dart b/dev/conductor/lib/proto/conductor_state.pb.dart | |
index 28a6242..5e599c5 100644 | |
--- a/dev/conductor/lib/proto/conductor_state.pb.dart | |
+++ b/dev/conductor/lib/proto/conductor_state.pb.dart | |
@@ -115,13 +115,23 @@ class Cherrypick extends $pb.GeneratedMessage { | |
? '' | |
: 'conductor_state'), | |
createEmptyInstance: create) | |
- ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'trunkRevision', | |
+ ..aOS( | |
+ 1, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'trunkRevision', | |
protoName: 'trunkRevision') | |
- ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appliedRevision', | |
+ ..aOS( | |
+ 2, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'appliedRevision', | |
protoName: 'appliedRevision') | |
..e<CherrypickState>( | |
3, | |
- const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'state', | |
$pb.PbFieldType.OE, | |
defaultOrMaker: CherrypickState.PENDING, | |
valueOf: CherrypickState.valueOf, | |
@@ -219,18 +229,55 @@ class Repository extends $pb.GeneratedMessage { | |
? '' | |
: 'conductor_state'), | |
createEmptyInstance: create) | |
- ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'candidateBranch', | |
+ ..aOS( | |
+ 1, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'candidateBranch', | |
protoName: 'candidateBranch') | |
- ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'startingGitHead', | |
+ ..aOS( | |
+ 2, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'startingGitHead', | |
protoName: 'startingGitHead') | |
- ..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'currentGitHead', | |
+ ..aOS( | |
+ 3, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'currentGitHead', | |
protoName: 'currentGitHead') | |
- ..aOS(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'checkoutPath', | |
+ ..aOS( | |
+ 4, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'checkoutPath', | |
protoName: 'checkoutPath') | |
- ..aOM<Remote>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'upstream', subBuilder: Remote.create) | |
- ..aOM<Remote>(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'mirror', subBuilder: Remote.create) | |
- ..pc<Cherrypick>(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'cherrypicks', $pb.PbFieldType.PM, subBuilder: Cherrypick.create) | |
- ..aOS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'dartRevision', protoName: 'dartRevision') | |
+ ..aOM<Remote>( | |
+ 5, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'upstream', | |
+ subBuilder: Remote.create) | |
+ ..aOM<Remote>( | |
+ 6, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'mirror', | |
+ subBuilder: Remote.create) | |
+ ..pc<Cherrypick>( | |
+ 7, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'cherrypicks', | |
+ $pb.PbFieldType.PM, | |
+ subBuilder: Cherrypick.create) | |
+ ..aOS( | |
+ 8, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'dartRevision', | |
+ protoName: 'dartRevision') | |
..hasRequiredFields = false; | |
Repository._() : super(); | |
@@ -399,19 +446,62 @@ class ConductorState extends $pb.GeneratedMessage { | |
? '' | |
: 'conductor_state'), | |
createEmptyInstance: create) | |
- ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'releaseChannel', | |
+ ..aOS( | |
+ 1, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'releaseChannel', | |
protoName: 'releaseChannel') | |
- ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'releaseVersion', | |
+ ..aOS( | |
+ 2, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'releaseVersion', | |
protoName: 'releaseVersion') | |
- ..aOM<Repository>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'engine', | |
+ ..aOM<Repository>( | |
+ 4, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'engine', | |
subBuilder: Repository.create) | |
- ..aOM<Repository>(5, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'framework', | |
+ ..aOM<Repository>( | |
+ 5, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'framework', | |
subBuilder: Repository.create) | |
- ..aInt64(6, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'createdDate', protoName: 'createdDate') | |
- ..aInt64(7, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'lastUpdatedDate', protoName: 'lastUpdatedDate') | |
- ..pPS(8, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'logs') | |
- ..e<ReleasePhase>(9, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'lastPhase', $pb.PbFieldType.OE, protoName: 'lastPhase', defaultOrMaker: ReleasePhase.INITIALIZE, valueOf: ReleasePhase.valueOf, enumValues: ReleasePhase.values) | |
- ..aOS(10, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'conductorVersion') | |
+ ..aInt64( | |
+ 6, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'createdDate', | |
+ protoName: 'createdDate') | |
+ ..aInt64( | |
+ 7, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'lastUpdatedDate', | |
+ protoName: 'lastUpdatedDate') | |
+ ..pPS( | |
+ 8, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'logs') | |
+ ..e<ReleasePhase>( | |
+ 9, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'lastPhase', | |
+ $pb.PbFieldType.OE, | |
+ protoName: 'lastPhase', | |
+ defaultOrMaker: ReleasePhase.INITIALIZE, | |
+ valueOf: ReleasePhase.valueOf, | |
+ enumValues: ReleasePhase.values) | |
+ ..aOS( | |
+ 10, | |
+ const $core.bool.fromEnvironment('protobuf.omit_field_names') | |
+ ? '' | |
+ : 'conductorVersion') | |
..hasRequiredFields = false; | |
ConductorState._() : super(); | |
diff --git a/dev/devicelab/lib/framework/browser.dart b/dev/devicelab/lib/framework/browser.dart | |
index 62e02d5..977f91e 100644 | |
--- a/dev/devicelab/lib/framework/browser.dart | |
+++ b/dev/devicelab/lib/framework/browser.dart | |
@@ -299,7 +299,7 @@ class BlinkTraceSummary { | |
List<BlinkTraceEvent> events = traceJson | |
.map<BlinkTraceEvent>(BlinkTraceEvent.fromJson) | |
.toList() | |
- ..sort((BlinkTraceEvent a, BlinkTraceEvent b) => a.ts - b.ts); | |
+ ..sort((BlinkTraceEvent a, BlinkTraceEvent b) => a.ts - b.ts); | |
Exception noMeasuredFramesFound() => Exception( | |
'No measured frames found in benchmark tracing data. This likely ' | |
diff --git a/dev/integration_tests/android_semantics_testing/lib/src/matcher.dart b/dev/integration_tests/android_semantics_testing/lib/src/matcher.dart | |
index c38c6d1..d92827b 100644 | |
--- a/dev/integration_tests/android_semantics_testing/lib/src/matcher.dart | |
+++ b/dev/integration_tests/android_semantics_testing/lib/src/matcher.dart | |
@@ -142,11 +142,11 @@ class _AndroidSemanticsMatcher extends Matcher { | |
final List<String> actionsString = actions | |
.map<String>((AndroidSemanticsAction action) => action.toString()) | |
.toList() | |
- ..sort(); | |
+ ..sort(); | |
final List<String> itemActionsString = itemActions | |
.map<String>((AndroidSemanticsAction action) => action.toString()) | |
.toList() | |
- ..sort(); | |
+ ..sort(); | |
final Set<String> unexpected = | |
itemActionsString.toSet().difference(actionsString.toSet()); | |
final Set<String> missing = | |
diff --git a/dev/integration_tests/flutter_gallery/lib/demo/shrine/supplemental/cut_corners_border.dart b/dev/integration_tests/flutter_gallery/lib/demo/shrine/supplemental/cut_corners_border.dart | |
index b71ba22..501f977 100644 | |
--- a/dev/integration_tests/flutter_gallery/lib/demo/shrine/supplemental/cut_corners_border.dart | |
+++ b/dev/integration_tests/flutter_gallery/lib/demo/shrine/supplemental/cut_corners_border.dart | |
@@ -69,7 +69,9 @@ class CutCornersBorder extends OutlineInputBorder { | |
if (start > 0.0 || extent! > 0.0) { | |
path.relativeMoveTo(extent! + start, center.top); | |
_notchedSidesAndBottom(center, path); | |
- path..lineTo(center.left + cut, center.top)..lineTo(start, center.top); | |
+ path | |
+ ..lineTo(center.left + cut, center.top) | |
+ ..lineTo(start, center.top); | |
} else { | |
path.moveTo(center.left + cut, center.top); | |
_notchedSidesAndBottom(center, path); | |
diff --git a/dev/tools/gen_keycodes/lib/logical_key_data.dart b/dev/tools/gen_keycodes/lib/logical_key_data.dart | |
index f62a516..240b6d4 100644 | |
--- a/dev/tools/gen_keycodes/lib/logical_key_data.dart | |
+++ b/dev/tools/gen_keycodes/lib/logical_key_data.dart | |
@@ -289,7 +289,9 @@ class LogicalKeyData { | |
print('Invalid logical entry by name $name (from GTK $gtkName)'); | |
continue; | |
} | |
- entry..gtkNames.add(gtkName)..gtkValues.add(value); | |
+ entry | |
+ ..gtkNames.add(gtkName) | |
+ ..gtkValues.add(value); | |
} | |
} | |
@@ -365,7 +367,9 @@ class LogicalKeyData { | |
'Invalid logical entry by name $name (from Android $androidName)'); | |
continue; | |
} | |
- entry..androidNames.add(androidName)..androidValues.add(value); | |
+ entry | |
+ ..androidNames.add(androidName) | |
+ ..androidValues.add(value); | |
} | |
} | |
diff --git a/examples/layers/widgets/styled_text.dart b/examples/layers/widgets/styled_text.dart | |
index 233a3b3..6dd63cb 100644 | |
--- a/examples/layers/widgets/styled_text.dart | |
+++ b/examples/layers/widgets/styled_text.dart | |
@@ -109,7 +109,7 @@ class _StyledTextDemoState extends State<StyledTextDemo> { | |
const SpeakerSeparator(), | |
]) | |
.toList() | |
- ..removeLast(), | |
+ ..removeLast(), | |
), | |
), | |
); | |
diff --git a/packages/flutter/lib/src/foundation/diagnostics.dart b/packages/flutter/lib/src/foundation/diagnostics.dart | |
index 0720d85..d7b3ff7 100644 | |
--- a/packages/flutter/lib/src/foundation/diagnostics.dart | |
+++ b/packages/flutter/lib/src/foundation/diagnostics.dart | |
@@ -992,7 +992,9 @@ class _PrefixedStringBuilder { | |
// Extend last range. | |
_wrappableRanges.last = wrapEnd; | |
} else { | |
- _wrappableRanges..add(wrapStart)..add(wrapEnd); | |
+ _wrappableRanges | |
+ ..add(wrapStart) | |
+ ..add(wrapEnd); | |
} | |
} | |
_currentLine.write(line); | |
diff --git a/packages/flutter/lib/src/material/material_localizations.dart b/packages/flutter/lib/src/material/material_localizations.dart | |
index 7a41039..4c843ed 100644 | |
--- a/packages/flutter/lib/src/material/material_localizations.dart | |
+++ b/packages/flutter/lib/src/material/material_localizations.dart | |
@@ -880,7 +880,9 @@ class DefaultMaterialLocalizations implements MaterialLocalizations { | |
} | |
// Add AM/PM indicator. | |
- buffer..write(' ')..write(_formatDayPeriod(timeOfDay)); | |
+ buffer | |
+ ..write(' ') | |
+ ..write(_formatDayPeriod(timeOfDay)); | |
return '$buffer'; | |
} | |
diff --git a/packages/flutter/lib/src/material/time_picker.dart b/packages/flutter/lib/src/material/time_picker.dart | |
index 69fa739..f2f0731 100644 | |
--- a/packages/flutter/lib/src/material/time_picker.dart | |
+++ b/packages/flutter/lib/src/material/time_picker.dart | |
@@ -999,7 +999,7 @@ class _DialState extends State<_Dial> with SingleTickerProviderStateMixin { | |
_theta = _thetaController | |
.drive(CurveTween(curve: standardEasing)) | |
.drive(_thetaTween) | |
- ..addListener(() => setState(() {/* _theta.value has changed */})); | |
+ ..addListener(() => setState(() {/* _theta.value has changed */})); | |
} | |
late ThemeData themeData; | |
diff --git a/packages/flutter/lib/src/semantics/semantics.dart b/packages/flutter/lib/src/semantics/semantics.dart | |
index 1a5b5b2..f59603b 100644 | |
--- a/packages/flutter/lib/src/semantics/semantics.dart | |
+++ b/packages/flutter/lib/src/semantics/semantics.dart | |
@@ -2309,7 +2309,7 @@ class SemanticsNode extends AbstractNode with DiagnosticableTreeMixin { | |
final List<String> actions = _actions.keys | |
.map<String>((SemanticsAction action) => describeEnum(action)) | |
.toList() | |
- ..sort(); | |
+ ..sort(); | |
final List<String?> customSemanticsActions = _customSemanticsActions.keys | |
.map<String?>((CustomSemanticsAction action) => action.label) | |
.toList(); | |
diff --git a/packages/flutter/lib/src/widgets/widget_inspector.dart b/packages/flutter/lib/src/widgets/widget_inspector.dart | |
index 48fc194..0dfec30 100644 | |
--- a/packages/flutter/lib/src/widgets/widget_inspector.dart | |
+++ b/packages/flutter/lib/src/widgets/widget_inspector.dart | |
@@ -2255,7 +2255,10 @@ class _ElementLocationStatsTracker { | |
location.file!, | |
() => <int>[], | |
); | |
- jsonForFile..add(entry.id)..add(location.line)..add(location.column); | |
+ jsonForFile | |
+ ..add(entry.id) | |
+ ..add(location.line) | |
+ ..add(location.column); | |
} | |
} | |
json['newLocations'] = locationsJson; | |
@@ -3030,7 +3033,9 @@ class _Location { | |
if (file != null) { | |
parts.add(file!); | |
} | |
- parts..add('$line')..add('$column'); | |
+ parts | |
+ ..add('$line') | |
+ ..add('$column'); | |
return parts.join(':'); | |
} | |
} | |
diff --git a/packages/flutter/test/cupertino/route_test.dart b/packages/flutter/test/cupertino/route_test.dart | |
index a2b21ed..0319613 100644 | |
--- a/packages/flutter/test/cupertino/route_test.dart | |
+++ b/packages/flutter/test/cupertino/route_test.dart | |
@@ -83,17 +83,16 @@ void main() { | |
findsNWidgets(2), | |
); | |
- final List<Element> titles = | |
- tester.elementList(find.text('An iPod')).toList() | |
- ..sort((Element a, Element b) { | |
- final RenderParagraph aParagraph = | |
- a.renderObject! as RenderParagraph; | |
- final RenderParagraph bParagraph = | |
- b.renderObject! as RenderParagraph; | |
- return aParagraph.text.style!.fontSize!.compareTo( | |
- bParagraph.text.style!.fontSize!, | |
- ); | |
- }); | |
+ final List<Element> titles = tester | |
+ .elementList(find.text('An iPod')) | |
+ .toList() | |
+ ..sort((Element a, Element b) { | |
+ final RenderParagraph aParagraph = a.renderObject! as RenderParagraph; | |
+ final RenderParagraph bParagraph = b.renderObject! as RenderParagraph; | |
+ return aParagraph.text.style!.fontSize!.compareTo( | |
+ bParagraph.text.style!.fontSize!, | |
+ ); | |
+ }); | |
final Iterable<double> opacities = titles.map<double>((Element element) { | |
final RenderAnimatedOpacity renderOpacity = | |
diff --git a/packages/flutter/test/gestures/resampler_test.dart b/packages/flutter/test/gestures/resampler_test.dart | |
index 7f2f37d..5640434 100644 | |
--- a/packages/flutter/test/gestures/resampler_test.dart | |
+++ b/packages/flutter/test/gestures/resampler_test.dart | |
@@ -244,7 +244,9 @@ void main() { | |
// No pointer event should have been returned yet. | |
expect(result.isEmpty, true); | |
- resampler..addEvent(event1)..addEvent(event2); | |
+ resampler | |
+ ..addEvent(event1) | |
+ ..addEvent(event2); | |
resampler.sample( | |
const Duration(microseconds: 500), Duration.zero, result.add); | |
@@ -294,7 +296,9 @@ void main() { | |
expect(result[2].position.dx, 15.0); | |
expect(result[2].position.dy, 35.0); | |
- resampler..addEvent(event4)..addEvent(event5); | |
+ resampler | |
+ ..addEvent(event4) | |
+ ..addEvent(event5); | |
resampler.sample( | |
const Duration(microseconds: 2500), Duration.zero, result.add); | |
@@ -346,7 +350,9 @@ void main() { | |
expect(result[5].position.dx, 35.0); | |
expect(result[5].position.dy, 15.0); | |
- resampler..addEvent(event7)..addEvent(event8); | |
+ resampler | |
+ ..addEvent(event7) | |
+ ..addEvent(event8); | |
resampler.sample( | |
const Duration(microseconds: 4500), Duration.zero, result.add); | |
diff --git a/packages/flutter/test/material/checkbox_theme_test.dart b/packages/flutter/test/material/checkbox_theme_test.dart | |
index e4c85fb..882ec1a 100644 | |
--- a/packages/flutter/test/material/checkbox_theme_test.dart | |
+++ b/packages/flutter/test/material/checkbox_theme_test.dart | |
@@ -158,8 +158,11 @@ void main() { | |
await tester.pumpAndSettle(); | |
expect( | |
_getCheckboxMaterial(tester), paints..path(color: selectedFillColor)); | |
- expect(_getCheckboxMaterial(tester), | |
- paints..path(color: selectedFillColor)..path(color: defaultCheckColor)); | |
+ expect( | |
+ _getCheckboxMaterial(tester), | |
+ paints | |
+ ..path(color: selectedFillColor) | |
+ ..path(color: defaultCheckColor)); | |
// Checkbox with hover. | |
await tester.pumpWidget(buildCheckbox()); | |
@@ -175,8 +178,11 @@ void main() { | |
await tester.pumpAndSettle(); | |
expect(_getCheckboxMaterial(tester), | |
paints..circle(color: focusOverlayColor, radius: splashRadius)); | |
- expect(_getCheckboxMaterial(tester), | |
- paints..path(color: selectedFillColor)..path(color: focusedCheckColor)); | |
+ expect( | |
+ _getCheckboxMaterial(tester), | |
+ paints | |
+ ..path(color: selectedFillColor) | |
+ ..path(color: focusedCheckColor)); | |
}); | |
testWidgets('Checkbox properties are taken over the theme values', | |
@@ -272,8 +278,11 @@ void main() { | |
await tester.pumpAndSettle(); | |
expect( | |
_getCheckboxMaterial(tester), paints..path(color: selectedFillColor)); | |
- expect(_getCheckboxMaterial(tester), | |
- paints..path(color: selectedFillColor)..path(color: checkColor)); | |
+ expect( | |
+ _getCheckboxMaterial(tester), | |
+ paints | |
+ ..path(color: selectedFillColor) | |
+ ..path(color: checkColor)); | |
// Checkbox with hover. | |
await tester.pumpWidget(buildCheckbox()); | |
diff --git a/packages/flutter/test/material/material_button_test.dart b/packages/flutter/test/material/material_button_test.dart | |
index 2aeb188..78995e9 100644 | |
--- a/packages/flutter/test/material/material_button_test.dart | |
+++ b/packages/flutter/test/material/material_button_test.dart | |
@@ -215,7 +215,10 @@ void main() { | |
inkFeatures = tester.allRenderObjects.firstWhere((RenderObject object) => | |
object.runtimeType.toString() == '_RenderInkFeatures'); | |
expect( | |
- inkFeatures, paints..rect(color: focusColor)..rect(color: hoverColor)); | |
+ inkFeatures, | |
+ paints | |
+ ..rect(color: focusColor) | |
+ ..rect(color: hoverColor)); | |
expect(material.elevation, equals(hoverElevation)); | |
await gesture.removePointer(); | |
gesture = null; | |
@@ -228,8 +231,11 @@ void main() { | |
material = tester.widget<Material>(rawButtonMaterial); | |
inkFeatures = tester.allRenderObjects.firstWhere((RenderObject object) => | |
object.runtimeType.toString() == '_RenderInkFeatures'); | |
- expect(inkFeatures, | |
- paints..rect(color: focusColor)..rect(color: highlightColor)); | |
+ expect( | |
+ inkFeatures, | |
+ paints | |
+ ..rect(color: focusColor) | |
+ ..rect(color: highlightColor)); | |
expect(material.elevation, equals(highlightElevation)); | |
await gesture2.up(); | |
}); | |
diff --git a/packages/flutter/test/material/progress_indicator_test.dart b/packages/flutter/test/material/progress_indicator_test.dart | |
index d024bb6..47582e5 100644 | |
--- a/packages/flutter/test/material/progress_indicator_test.dart | |
+++ b/packages/flutter/test/material/progress_indicator_test.dart | |
@@ -467,8 +467,11 @@ void main() { | |
)); | |
expect(find.byType(CircularProgressIndicator), | |
paintsExactlyCountTimes(#drawArc, 2)); | |
- expect(find.byType(CircularProgressIndicator), | |
- paints..arc(color: green)..arc(color: blue)); | |
+ expect( | |
+ find.byType(CircularProgressIndicator), | |
+ paints | |
+ ..arc(color: green) | |
+ ..arc(color: blue)); | |
// With ProgressIndicatorTheme | |
await tester.pumpWidget(Theme( | |
@@ -481,8 +484,11 @@ void main() { | |
)); | |
expect(find.byType(CircularProgressIndicator), | |
paintsExactlyCountTimes(#drawArc, 2)); | |
- expect(find.byType(CircularProgressIndicator), | |
- paints..arc(color: blue)..arc(color: green)); | |
+ expect( | |
+ find.byType(CircularProgressIndicator), | |
+ paints | |
+ ..arc(color: blue) | |
+ ..arc(color: green)); | |
}); | |
testWidgets('RefreshProgressIndicator paint colors', | |
diff --git a/packages/flutter/test/material/range_slider_test.dart b/packages/flutter/test/material/range_slider_test.dart | |
index 7dcc364..7571da6 100644 | |
--- a/packages/flutter/test/material/range_slider_test.dart | |
+++ b/packages/flutter/test/material/range_slider_test.dart | |
@@ -1191,7 +1191,9 @@ void main() { | |
); | |
expect( | |
sliderBox, | |
- paints..circle(color: activeColor)..circle(color: activeColor), | |
+ paints | |
+ ..circle(color: activeColor) | |
+ ..circle(color: activeColor), | |
); | |
expect(sliderBox, isNot(paints..circle(color: sliderTheme.thumbColor))); | |
expect(sliderBox, | |
@@ -1262,7 +1264,9 @@ void main() { | |
); | |
expect( | |
sliderBox, | |
- paints..circle(color: activeColor)..circle(color: activeColor), | |
+ paints | |
+ ..circle(color: activeColor) | |
+ ..circle(color: activeColor), | |
); | |
expect(sliderBox, isNot(paints..circle(color: sliderTheme.thumbColor))); | |
expect(sliderBox, | |
diff --git a/packages/flutter/test/material/slider_test.dart b/packages/flutter/test/material/slider_test.dart | |
index bc6b8f3..3f8c7d3 100644 | |
--- a/packages/flutter/test/material/slider_test.dart | |
+++ b/packages/flutter/test/material/slider_test.dart | |
@@ -724,8 +724,11 @@ void main() { | |
// Test setting both activeColor and inactiveColor. | |
await tester.pumpWidget( | |
buildApp(activeColor: customColor1, inactiveColor: customColor2)); | |
- expect(material, | |
- paints..rrect(color: customColor1)..rrect(color: customColor2)); | |
+ expect( | |
+ material, | |
+ paints | |
+ ..rrect(color: customColor1) | |
+ ..rrect(color: customColor2)); | |
expect(material, paints..shadow(color: Colors.black)); | |
expect(material, paints..circle(color: customColor1)); | |
expect(material, isNot(paints..circle(color: sliderTheme.thumbColor))); | |
@@ -766,8 +769,11 @@ void main() { | |
inactiveColor: customColor2, | |
divisions: 3, | |
)); | |
- expect(material, | |
- paints..rrect(color: customColor1)..rrect(color: customColor2)); | |
+ expect( | |
+ material, | |
+ paints | |
+ ..rrect(color: customColor1) | |
+ ..rrect(color: customColor2)); | |
expect( | |
material, | |
paints | |
@@ -2837,7 +2843,13 @@ void main() { | |
Material.of(tester.element(find.byType(CupertinoSlider)))!; | |
expect( | |
material, | |
- paints..rrect()..rrect()..rrect()..rrect()..rrect()..rrect(color: color), | |
+ paints | |
+ ..rrect() | |
+ ..rrect() | |
+ ..rrect() | |
+ ..rrect() | |
+ ..rrect() | |
+ ..rrect(color: color), | |
); | |
}); | |
} | |
diff --git a/packages/flutter/test/rendering/table_test.dart b/packages/flutter/test/rendering/table_test.dart | |
index ed0238f..100f5d5 100644 | |
--- a/packages/flutter/test/rendering/table_test.dart | |
+++ b/packages/flutter/test/rendering/table_test.dart | |
@@ -219,18 +219,44 @@ void main() { | |
layout(table); | |
table.setFlatChildren(1, <RenderBox>[]); | |
pumpFrame(); | |
- expect(table, paints..path()..path()..path()..path()); | |
+ expect( | |
+ table, | |
+ paints | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path()); | |
table.setFlatChildren(1, <RenderBox>[RenderPositionedBox()]); | |
pumpFrame(); | |
- expect(table, paints..path()..path()..path()..path()); | |
+ expect( | |
+ table, | |
+ paints | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path()); | |
table.setFlatChildren( | |
1, <RenderBox>[RenderPositionedBox(), RenderPositionedBox()]); | |
pumpFrame(); | |
- expect(table, paints..path()..path()..path()..path()..path()); | |
+ expect( | |
+ table, | |
+ paints | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path()); | |
table.setFlatChildren( | |
2, <RenderBox>[RenderPositionedBox(), RenderPositionedBox()]); | |
pumpFrame(); | |
- expect(table, paints..path()..path()..path()..path()..path()); | |
+ expect( | |
+ table, | |
+ paints | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path()); | |
table.setFlatChildren(2, <RenderBox>[ | |
RenderPositionedBox(), | |
RenderPositionedBox(), | |
@@ -238,7 +264,15 @@ void main() { | |
RenderPositionedBox(), | |
]); | |
pumpFrame(); | |
- expect(table, paints..path()..path()..path()..path()..path()..path()); | |
+ expect( | |
+ table, | |
+ paints | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path()); | |
table.setFlatChildren(3, <RenderBox>[ | |
RenderPositionedBox(), | |
RenderPositionedBox(), | |
@@ -248,7 +282,15 @@ void main() { | |
RenderPositionedBox(), | |
]); | |
pumpFrame(); | |
- expect(table, paints..path()..path()..path()..path()..path()..path()); | |
+ expect( | |
+ table, | |
+ paints | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path() | |
+ ..path()); | |
}); | |
test('Table flex sizing', () { | |
diff --git a/packages/flutter/test/widgets/custom_painter_test.dart b/packages/flutter/test/widgets/custom_painter_test.dart | |
index 676032f..564237a 100644 | |
--- a/packages/flutter/test/widgets/custom_painter_test.dart | |
+++ b/packages/flutter/test/widgets/custom_painter_test.dart | |
@@ -377,10 +377,10 @@ void _defineTests() { | |
)); | |
final Set<SemanticsAction> allActions = SemanticsAction.values.values | |
.toSet() | |
- ..remove( | |
- SemanticsAction.customAction) // customAction is not user-exposed. | |
- ..remove( | |
- SemanticsAction.showOnScreen); // showOnScreen is not user-exposed | |
+ ..remove( | |
+ SemanticsAction.customAction) // customAction is not user-exposed. | |
+ ..remove( | |
+ SemanticsAction.showOnScreen); // showOnScreen is not user-exposed | |
const int expectedId = 2; | |
final TestSemantics expectedSemantics = TestSemantics.root( | |
diff --git a/packages/flutter/test/widgets/grid_view_test.dart b/packages/flutter/test/widgets/grid_view_test.dart | |
index 2b85e0d..f125c96 100644 | |
--- a/packages/flutter/test/widgets/grid_view_test.dart | |
+++ b/packages/flutter/test/widgets/grid_view_test.dart | |
@@ -450,7 +450,10 @@ void main() { | |
); | |
expect( | |
- find.byType(GridView), paints..rect(color: green)..rect(color: green)); | |
+ find.byType(GridView), | |
+ paints | |
+ ..rect(color: green) | |
+ ..rect(color: green)); | |
expect( | |
find.byType(GridView), | |
isNot(paints | |
diff --git a/packages/flutter/test/widgets/image_rtl_test.dart b/packages/flutter/test/widgets/image_rtl_test.dart | |
index 12ec997..0c365d4 100644 | |
--- a/packages/flutter/test/widgets/image_rtl_test.dart | |
+++ b/packages/flutter/test/widgets/image_rtl_test.dart | |
@@ -86,7 +86,11 @@ void main() { | |
destination: const Rect.fromLTRB(84.0, 0.0, 100.0, 9.0)) | |
..restore(), | |
); | |
- expect(find.byType(Container), isNot(paints..scale()..scale())); | |
+ expect( | |
+ find.byType(Container), | |
+ isNot(paints | |
+ ..scale() | |
+ ..scale())); | |
}); | |
testWidgets('DecorationImage LTR with alignment topEnd (and pointless match)', | |
@@ -279,9 +283,16 @@ void main() { | |
destination: const Rect.fromLTRB(0.0, 20.5, 16.0, 29.5)) | |
..restore(), | |
); | |
- expect(find.byType(Container), isNot(paints..scale()..scale())); | |
- expect(find.byType(Container), | |
- isNot(paints..drawImageRect()..drawImageRect())); | |
+ expect( | |
+ find.byType(Container), | |
+ isNot(paints | |
+ ..scale() | |
+ ..scale())); | |
+ expect( | |
+ find.byType(Container), | |
+ isNot(paints | |
+ ..drawImageRect() | |
+ ..drawImageRect())); | |
}); | |
testWidgets('DecorationImage RTL with alignment center-right and no match', | |
@@ -313,8 +324,11 @@ void main() { | |
destination: const Rect.fromLTRB(84.0, 20.5, 100.0, 29.5)), | |
); | |
expect(find.byType(Container), isNot(paints..scale())); | |
- expect(find.byType(Container), | |
- isNot(paints..drawImageRect()..drawImageRect())); | |
+ expect( | |
+ find.byType(Container), | |
+ isNot(paints | |
+ ..drawImageRect() | |
+ ..drawImageRect())); | |
}); | |
testWidgets('DecorationImage LTR with alignment center-right and match', | |
@@ -347,8 +361,11 @@ void main() { | |
destination: const Rect.fromLTRB(84.0, 20.5, 100.0, 29.5)), | |
); | |
expect(find.byType(Container), isNot(paints..scale())); | |
- expect(find.byType(Container), | |
- isNot(paints..drawImageRect()..drawImageRect())); | |
+ expect( | |
+ find.byType(Container), | |
+ isNot(paints | |
+ ..drawImageRect() | |
+ ..drawImageRect())); | |
}); | |
testWidgets('DecorationImage LTR with alignment center-right and no match', | |
@@ -381,8 +398,11 @@ void main() { | |
destination: const Rect.fromLTRB(84.0, 20.5, 100.0, 29.5)), | |
); | |
expect(find.byType(Container), isNot(paints..scale())); | |
- expect(find.byType(Container), | |
- isNot(paints..drawImageRect()..drawImageRect())); | |
+ expect( | |
+ find.byType(Container), | |
+ isNot(paints | |
+ ..drawImageRect() | |
+ ..drawImageRect())); | |
}); | |
testWidgets('Image RTL with alignment topEnd and match', | |
@@ -436,7 +456,11 @@ void main() { | |
destination: const Rect.fromLTRB(84.0, 0.0, 100.0, 9.0)) | |
..restore(), | |
); | |
- expect(find.byType(SizedBox), isNot(paints..scale()..scale())); | |
+ expect( | |
+ find.byType(SizedBox), | |
+ isNot(paints | |
+ ..scale() | |
+ ..scale())); | |
}); | |
testWidgets('Image LTR with alignment topEnd (and pointless match)', | |
@@ -617,9 +641,16 @@ void main() { | |
destination: const Rect.fromLTRB(0.0, 20.5, 16.0, 29.5)) | |
..restore(), | |
); | |
- expect(find.byType(SizedBox), isNot(paints..scale()..scale())); | |
expect( | |
- find.byType(SizedBox), isNot(paints..drawImageRect()..drawImageRect())); | |
+ find.byType(SizedBox), | |
+ isNot(paints | |
+ ..scale() | |
+ ..scale())); | |
+ expect( | |
+ find.byType(SizedBox), | |
+ isNot(paints | |
+ ..drawImageRect() | |
+ ..drawImageRect())); | |
}); | |
testWidgets('Image RTL with alignment center-right and no match', | |
@@ -650,7 +681,10 @@ void main() { | |
); | |
expect(find.byType(SizedBox), isNot(paints..scale())); | |
expect( | |
- find.byType(SizedBox), isNot(paints..drawImageRect()..drawImageRect())); | |
+ find.byType(SizedBox), | |
+ isNot(paints | |
+ ..drawImageRect() | |
+ ..drawImageRect())); | |
}); | |
testWidgets('Image LTR with alignment center-right and match', | |
@@ -682,7 +716,10 @@ void main() { | |
); | |
expect(find.byType(SizedBox), isNot(paints..scale())); | |
expect( | |
- find.byType(SizedBox), isNot(paints..drawImageRect()..drawImageRect())); | |
+ find.byType(SizedBox), | |
+ isNot(paints | |
+ ..drawImageRect() | |
+ ..drawImageRect())); | |
}); | |
testWidgets('Image LTR with alignment center-right and no match', | |
@@ -714,7 +751,10 @@ void main() { | |
); | |
expect(find.byType(SizedBox), isNot(paints..scale())); | |
expect( | |
- find.byType(SizedBox), isNot(paints..drawImageRect()..drawImageRect())); | |
+ find.byType(SizedBox), | |
+ isNot(paints | |
+ ..drawImageRect() | |
+ ..drawImageRect())); | |
}); | |
testWidgets('Image - Switch needing direction', (WidgetTester tester) async { | |
diff --git a/packages/flutter/test/widgets/overscroll_indicator_test.dart b/packages/flutter/test/widgets/overscroll_indicator_test.dart | |
index a55263a..4af5aa4 100644 | |
--- a/packages/flutter/test/widgets/overscroll_indicator_test.dart | |
+++ b/packages/flutter/test/widgets/overscroll_indicator_test.dart | |
@@ -254,9 +254,17 @@ void main() { | |
final RenderObject painter = tester.renderObject(find.byType(CustomPaint)); | |
await slowDrag(tester, const Offset(200.0, 200.0), const Offset(0.0, 5.0)); | |
expect(painter, paints..circle()); | |
- expect(painter, isNot(paints..circle()..circle())); | |
+ expect( | |
+ painter, | |
+ isNot(paints | |
+ ..circle() | |
+ ..circle())); | |
await slowDrag(tester, const Offset(200.0, 200.0), const Offset(0.0, -5.0)); | |
- expect(painter, paints..circle()..circle()); | |
+ expect( | |
+ painter, | |
+ paints | |
+ ..circle() | |
+ ..circle()); | |
await tester.pumpAndSettle(const Duration(seconds: 1)); | |
expect(painter, doesNotOverscroll); | |
@@ -283,7 +291,11 @@ void main() { | |
..rotate(angle: math.pi / 2.0) | |
..circle() | |
..saveRestore()); | |
- expect(painter, isNot(paints..circle()..circle())); | |
+ expect( | |
+ painter, | |
+ isNot(paints | |
+ ..circle() | |
+ ..circle())); | |
await slowDrag(tester, const Offset(200.0, 200.0), const Offset(-5.0, 0.0)); | |
expect( | |
painter, | |
@@ -348,7 +360,11 @@ void main() { | |
paints | |
..rotate(angle: math.pi / 2.0) | |
..circle(color: const Color(0x0A00FF00))); | |
- expect(painter, isNot(paints..circle()..circle())); | |
+ expect( | |
+ painter, | |
+ isNot(paints | |
+ ..circle() | |
+ ..circle())); | |
await tester.pumpAndSettle(const Duration(seconds: 1)); | |
await tester.pumpWidget( | |
@@ -374,7 +390,11 @@ void main() { | |
..rotate(angle: math.pi / 2.0) | |
..circle(color: const Color(0x0A0000FF)) | |
..saveRestore()); | |
- expect(painter, isNot(paints..circle()..circle())); | |
+ expect( | |
+ painter, | |
+ isNot(paints | |
+ ..circle() | |
+ ..circle())); | |
}); | |
testWidgets( | |
diff --git a/packages/flutter/test/widgets/semantics_test.dart b/packages/flutter/test/widgets/semantics_test.dart | |
index c8455d2..9cd3473 100644 | |
--- a/packages/flutter/test/widgets/semantics_test.dart | |
+++ b/packages/flutter/test/widgets/semantics_test.dart | |
@@ -500,12 +500,12 @@ void main() { | |
final Set<SemanticsAction> allActions = SemanticsAction.values.values | |
.toSet() | |
- ..remove(SemanticsAction.moveCursorForwardByWord) | |
- ..remove(SemanticsAction.moveCursorBackwardByWord) | |
- ..remove( | |
- SemanticsAction.customAction) // customAction is not user-exposed. | |
- ..remove( | |
- SemanticsAction.showOnScreen); // showOnScreen is not user-exposed | |
+ ..remove(SemanticsAction.moveCursorForwardByWord) | |
+ ..remove(SemanticsAction.moveCursorBackwardByWord) | |
+ ..remove( | |
+ SemanticsAction.customAction) // customAction is not user-exposed. | |
+ ..remove( | |
+ SemanticsAction.showOnScreen); // showOnScreen is not user-exposed | |
const int expectedId = 1; | |
final TestSemantics expectedSemantics = TestSemantics.root( | |
diff --git a/packages/flutter_goldens/test/flutter_goldens_test.dart b/packages/flutter_goldens/test/flutter_goldens_test.dart | |
index 19ae9b7..4909095 100644 | |
--- a/packages/flutter_goldens/test/flutter_goldens_test.dart | |
+++ b/packages/flutter_goldens/test/flutter_goldens_test.dart | |
@@ -460,7 +460,7 @@ void main() { | |
FakeLocalFileComparator(); | |
final Directory flutterRoot = fs | |
.directory(platform.environment['FLUTTER_ROOT']) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
defaultComparator.basedir = flutterRoot.childDirectory('baz').uri; | |
final Directory basedir = FlutterGoldenFileComparator.getBaseDirectory( | |
diff --git a/packages/flutter_test/lib/src/matchers.dart b/packages/flutter_test/lib/src/matchers.dart | |
index c415b50..317c56c 100644 | |
--- a/packages/flutter_test/lib/src/matchers.dart | |
+++ b/packages/flutter_test/lib/src/matchers.dart | |
@@ -1164,7 +1164,7 @@ class _MoreOrLessEquals extends Matcher { | |
Map<dynamic, dynamic> matchState, bool verbose) { | |
return super | |
.describeMismatch(item, mismatchDescription, matchState, verbose) | |
- ..add('$item is not in the range of $value (±$epsilon).'); | |
+ ..add('$item is not in the range of $value (±$epsilon).'); | |
} | |
} | |
diff --git a/packages/flutter_tools/lib/src/build_system/targets/android.dart b/packages/flutter_tools/lib/src/build_system/targets/android.dart | |
index 923d48c..c931901 100644 | |
--- a/packages/flutter_tools/lib/src/build_system/targets/android.dart | |
+++ b/packages/flutter_tools/lib/src/build_system/targets/android.dart | |
@@ -51,7 +51,7 @@ abstract class AndroidAssetBundle extends Target { | |
getBuildModeForName(environment.defines[kBuildMode]); | |
final Directory outputDirectory = environment.outputDir | |
.childDirectory('flutter_assets') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
// Only copy the prebuilt runtimes and kernel blob in debug mode. | |
if (buildMode == BuildMode.debug) { | |
diff --git a/packages/flutter_tools/lib/src/build_system/targets/macos.dart b/packages/flutter_tools/lib/src/build_system/targets/macos.dart | |
index ed439e7..feb024f 100644 | |
--- a/packages/flutter_tools/lib/src/build_system/targets/macos.dart | |
+++ b/packages/flutter_tools/lib/src/build_system/targets/macos.dart | |
@@ -400,7 +400,7 @@ abstract class MacOSBundleFlutterAssets extends Target { | |
final Directory outputDirectory = frameworkRootDirectory | |
.childDirectory('Versions') | |
.childDirectory('A') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
// Copy App into framework directory. | |
environment.buildDir | |
diff --git a/packages/flutter_tools/lib/src/commands/update_packages.dart b/packages/flutter_tools/lib/src/commands/update_packages.dart | |
index f6b64ce..7a7209a 100644 | |
--- a/packages/flutter_tools/lib/src/commands/update_packages.dart | |
+++ b/packages/flutter_tools/lib/src/commands/update_packages.dart | |
@@ -1531,7 +1531,7 @@ Directory createTemporaryFlutterSdk( | |
final Directory directory = fileSystem.systemTempDirectory | |
.createTempSync('flutter_upgrade_sdk.') | |
- ..createSync(); | |
+ ..createSync(); | |
// Fill in version info. | |
realFlutter | |
.childFile('version') | |
@@ -1543,7 +1543,7 @@ Directory createTemporaryFlutterSdk( | |
final File pubspecFile = packages | |
.childDirectory(flutterPackage) | |
.childFile('pubspec.yaml') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
final PubspecYaml pubspecYaml = pubspecsByName[flutterPackage]; | |
if (pubspecYaml == null) { | |
logger.printError( | |
@@ -1580,8 +1580,8 @@ environment: | |
.childDirectory('pkg') | |
.childDirectory('sky_engine') | |
.childFile('pubspec.yaml') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(''' | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(''' | |
name: sky_engine | |
version: 0.0.99 | |
author: Flutter Authors <[email protected]> | |
diff --git a/packages/flutter_tools/lib/src/device.dart b/packages/flutter_tools/lib/src/device.dart | |
index 89b08ef..e88cb9a 100644 | |
--- a/packages/flutter_tools/lib/src/device.dart | |
+++ b/packages/flutter_tools/lib/src/device.dart | |
@@ -681,7 +681,7 @@ abstract class Device { | |
) | |
.toSet() | |
.toList() | |
- ..sort(); | |
+ ..sort(); | |
} | |
/// Convert the Device object to a JSON representation suitable for serialization. | |
diff --git a/packages/flutter_tools/lib/src/isolated/resident_web_runner.dart b/packages/flutter_tools/lib/src/isolated/resident_web_runner.dart | |
index 2c4af41..2e0dbec 100644 | |
--- a/packages/flutter_tools/lib/src/isolated/resident_web_runner.dart | |
+++ b/packages/flutter_tools/lib/src/isolated/resident_web_runner.dart | |
@@ -432,7 +432,7 @@ class ResidentWebRunner extends ResidentRunner { | |
if (_generatedEntrypointDirectory == null) { | |
_generatedEntrypointDirectory ??= _fileSystem.systemTempDirectory | |
.createTempSync('flutter_tools.') | |
- ..createSync(); | |
+ ..createSync(); | |
result = _generatedEntrypointDirectory.childFile('web_entrypoint.dart'); | |
final bool hasWebPlugins = (await findPlugins(flutterProject)) | |
diff --git a/packages/flutter_tools/lib/src/localizations/gen_l10n.dart b/packages/flutter_tools/lib/src/localizations/gen_l10n.dart | |
index 7d4af2f..3b3262c 100644 | |
--- a/packages/flutter_tools/lib/src/localizations/gen_l10n.dart | |
+++ b/packages/flutter_tools/lib/src/localizations/gen_l10n.dart | |
@@ -1220,7 +1220,7 @@ class LocalizationsGenerator { | |
return "import '$library.dart';"; | |
} | |
}).toList() | |
- ..sort(); | |
+ ..sort(); | |
final String delegateClass = _generateDelegateClass( | |
allBundles: _allBundles, | |
diff --git a/packages/flutter_tools/test/commands.shard/hermetic/build_ios_framework_test.dart b/packages/flutter_tools/test/commands.shard/hermetic/build_ios_framework_test.dart | |
index 6f3322c..9d25ae5 100644 | |
--- a/packages/flutter_tools/test/commands.shard/hermetic/build_ios_framework_test.dart | |
+++ b/packages/flutter_tools/test/commands.shard/hermetic/build_ios_framework_test.dart | |
@@ -41,7 +41,7 @@ void main() { | |
outputDirectory = memoryFileSystem.systemTempDirectory | |
.createTempSync('flutter_build_ios_framework_test_output.') | |
.childDirectory('Debug') | |
- ..createSync(); | |
+ ..createSync(); | |
}); | |
group('podspec', () { | |
@@ -60,8 +60,8 @@ void main() { | |
.childDirectory('bin') | |
.childDirectory('internal') | |
.childFile('engine.version') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(engineRevision); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(engineRevision); | |
}); | |
testUsingContext('version unknown', () async { | |
diff --git a/packages/flutter_tools/test/commands.shard/hermetic/generate_localizations_test.dart b/packages/flutter_tools/test/commands.shard/hermetic/generate_localizations_test.dart | |
index 7e242c3..ad2531e 100644 | |
--- a/packages/flutter_tools/test/commands.shard/hermetic/generate_localizations_test.dart | |
+++ b/packages/flutter_tools/test/commands.shard/hermetic/generate_localizations_test.dart | |
@@ -21,7 +21,7 @@ void main() { | |
final BufferLogger logger = BufferLogger.test(); | |
final File arbFile = fileSystem | |
.file(fileSystem.path.join('lib', 'l10n', 'app_en.arb')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
arbFile.writeAsStringSync(''' | |
{ | |
"helloWorld": "Hello, World!", | |
@@ -87,7 +87,7 @@ void main() { | |
final BufferLogger logger = BufferLogger.test(); | |
final File arbFile = fileSystem | |
.file(fileSystem.path.join('lib', 'l10n', 'app_en.arb')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
arbFile.writeAsStringSync(''' | |
{ | |
"helloWorld": "Hello, World!", | |
@@ -117,7 +117,7 @@ void main() { | |
final BufferLogger logger = BufferLogger.test(); | |
final File arbFile = fileSystem | |
.file(fileSystem.path.join('lib', 'l10n', 'app_en.arb')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
arbFile.writeAsStringSync(''' | |
{ | |
"helloWorld": "Hello, World!", | |
diff --git a/packages/flutter_tools/test/commands.shard/hermetic/pub_get_test.dart b/packages/flutter_tools/test/commands.shard/hermetic/pub_get_test.dart | |
index e7aee71..80f431e 100644 | |
--- a/packages/flutter_tools/test/commands.shard/hermetic/pub_get_test.dart | |
+++ b/packages/flutter_tools/test/commands.shard/hermetic/pub_get_test.dart | |
@@ -137,7 +137,7 @@ class FakePub extends Fake implements Pub { | |
fileSystem.currentDirectory | |
.childDirectory('.dart_tool') | |
.childFile('package_config.json') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('{"configVersion":2,"packages":[]}'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('{"configVersion":2,"packages":[]}'); | |
} | |
} | |
diff --git a/packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart b/packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart | |
index 8fcec47..f3f6930 100644 | |
--- a/packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/android/android_gradle_builder_test.dart | |
@@ -80,8 +80,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
bool handlerCalled = false; | |
await expectLater(() async { | |
@@ -179,8 +179,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
int testFnCalled = 0; | |
await expectLater(() async { | |
@@ -274,8 +274,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
bool handlerCalled = false; | |
await expectLater(() async { | |
@@ -367,8 +367,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
await expectLater(() async { | |
await builder.buildGradleApp( | |
@@ -441,8 +441,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
fileSystem | |
.directory('build') | |
@@ -537,8 +537,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
final Archive archive = Archive() | |
..addFile( | |
@@ -556,8 +556,8 @@ void main() { | |
.childDirectory('outputs') | |
.childDirectory('flutter-apk') | |
.childFile('app-release.apk') | |
- ..createSync(recursive: true) | |
- ..writeAsBytesSync(ZipEncoder().encode(archive)); | |
+ ..createSync(recursive: true) | |
+ ..writeAsBytesSync(ZipEncoder().encode(archive)); | |
fileSystem.file('foo/snapshot.arm64-v8a.json') | |
..createSync(recursive: true) | |
@@ -656,8 +656,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
int testFnCalled = 0; | |
bool builtPluginAsAar = false; | |
@@ -755,8 +755,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
fileSystem | |
.directory('build') | |
@@ -981,8 +981,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
await expectLater(() async { | |
await builder.buildGradleApp( | |
@@ -1071,8 +1071,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
await expectLater(() async { | |
await builder.buildGradleApp( | |
@@ -1160,8 +1160,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
await expectLater(() async { | |
await builder.buildGradleApp( | |
@@ -1249,8 +1249,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
await expectLater(() async { | |
await builder.buildGradleApp( | |
@@ -1305,8 +1305,8 @@ void main() { | |
.directory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('apply from: irrelevant/flutter.gradle'); | |
await expectLater(() async { | |
await builder.buildGradleApp( | |
diff --git a/packages/flutter_tools/test/general.shard/android/android_studio_test.dart b/packages/flutter_tools/test/general.shard/android/android_studio_test.dart | |
index fb2ed2e..1229d89 100644 | |
--- a/packages/flutter_tools/test/general.shard/android/android_studio_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/android/android_studio_test.dart | |
@@ -440,8 +440,8 @@ void main() { | |
testUsingContext('Can discover Android Studio 4.1 location on Windows', () { | |
windowsFileSystem | |
.file(r'C:\Users\Dash\AppData\Local\Google\AndroidStudio4.1\.home') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(r'C:\Program Files\AndroidStudio'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(r'C:\Program Files\AndroidStudio'); | |
windowsFileSystem | |
.directory(r'C:\Program Files\AndroidStudio') | |
.createSync(recursive: true); | |
@@ -459,8 +459,8 @@ void main() { | |
testUsingContext('Can discover Android Studio 4.2 location on Windows', () { | |
windowsFileSystem | |
.file(r'C:\Users\Dash\AppData\Local\Google\AndroidStudio4.2\.home') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(r'C:\Program Files\AndroidStudio'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(r'C:\Program Files\AndroidStudio'); | |
windowsFileSystem | |
.directory(r'C:\Program Files\AndroidStudio') | |
.createSync(recursive: true); | |
@@ -480,8 +480,8 @@ void main() { | |
() { | |
windowsFileSystem | |
.file(r'C:\Users\Dash\AppData\Local\Google\AndroidStudio4.1\.home') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(r'C:\Program Files\AndroidStudio'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(r'C:\Program Files\AndroidStudio'); | |
windowsFileSystem | |
.directory(r'C:\Program Files\AndroidStudio') | |
.createSync(recursive: true); | |
@@ -501,8 +501,8 @@ void main() { | |
() { | |
windowsFileSystem | |
.file(r'C:\Users\Dash\AppData\Local\Google\AndroidStudio4.2\.home') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(r'C:\Program Files\AndroidStudio'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(r'C:\Program Files\AndroidStudio'); | |
windowsFileSystem | |
.directory(r'C:\Program Files\AndroidStudio') | |
.createSync(recursive: true); | |
diff --git a/packages/flutter_tools/test/general.shard/artifact_updater_test.dart b/packages/flutter_tools/test/general.shard/artifact_updater_test.dart | |
index 3fc6c55..610c33c 100644 | |
--- a/packages/flutter_tools/test/general.shard/artifact_updater_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/artifact_updater_test.dart | |
@@ -506,7 +506,7 @@ void main() { | |
final Directory errorDirectory = fileSystem.currentDirectory | |
.childDirectory('out') | |
.childDirectory('test') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
handler.addError(errorDirectory, FileSystemOp.delete, | |
const FileSystemException('', '', OSError('', kSharingViolation))); | |
diff --git a/packages/flutter_tools/test/general.shard/base/analyze_size_test.dart b/packages/flutter_tools/test/general.shard/base/analyze_size_test.dart | |
index 4ab919f..955b6e6 100644 | |
--- a/packages/flutter_tools/test/general.shard/base/analyze_size_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/base/analyze_size_test.dart | |
@@ -219,7 +219,7 @@ void main() { | |
final Directory outputDirectory = fileSystem | |
.directory('example/out/foo.app') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
outputDirectory.childFile('a.txt') | |
..createSync() | |
..writeAsStringSync('hello'); | |
@@ -263,7 +263,7 @@ void main() { | |
final Directory outputDirectory = fileSystem | |
.directory('example/out/foo.app') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
final File invalidAotSizeJson = fileSystem.file('test.json') | |
..writeAsStringSync('null'); | |
final File precompilerTrace = fileSystem.file('trace.json'); | |
diff --git a/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart b/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart | |
index 57f9437..707f7c7 100644 | |
--- a/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/build_system/build_system_test.dart | |
@@ -560,7 +560,7 @@ void main() { | |
environment.outputDir.childFile('.last_build_id').writeAsStringSync('foo'); | |
final Directory otherBuildDir = environment.buildDir.parent | |
.childDirectory('foo') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
final File staleFile = environment.outputDir.childFile('stale') | |
..createSync(); | |
otherBuildDir | |
diff --git a/packages/flutter_tools/test/general.shard/build_system/file_store_test.dart b/packages/flutter_tools/test/general.shard/build_system/file_store_test.dart | |
index 65b9d30..349117c 100644 | |
--- a/packages/flutter_tools/test/general.shard/build_system/file_store_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/build_system/file_store_test.dart | |
@@ -119,7 +119,7 @@ void main() { | |
final File cacheFile = fileSystem | |
.directory('example') | |
.childFile(FileStore.kFileCache) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
final FileStore fileCache = FileStore( | |
cacheFile: cacheFile, | |
logger: BufferLogger.test(), | |
@@ -203,7 +203,7 @@ void main() { | |
final File cacheFile = fileSystem | |
.directory('example') | |
.childFile(FileStore.kFileCache) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
final FileStore fileCache = FileStore( | |
cacheFile: cacheFile, | |
logger: BufferLogger.test(), | |
diff --git a/packages/flutter_tools/test/general.shard/build_system/targets/dart_plugin_registrant_test.dart b/packages/flutter_tools/test/general.shard/build_system/targets/dart_plugin_registrant_test.dart | |
index a471a44..54bb729 100644 | |
--- a/packages/flutter_tools/test/general.shard/build_system/targets/dart_plugin_registrant_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/build_system/targets/dart_plugin_registrant_test.dart | |
@@ -235,8 +235,8 @@ void main() { | |
environment.fileSystem.currentDirectory | |
.childDirectory('path_provider_linux') | |
.childFile('pubspec.yaml') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(_kSamplePluginPubspec); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(_kSamplePluginPubspec); | |
final FlutterProject testProject = | |
FlutterProject.fromDirectoryTest(projectDir); | |
@@ -319,8 +319,8 @@ void main() { | |
final File config = projectDir | |
.childDirectory('.dart_tool') | |
.childFile('package_config.json') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(_kSamplePackageJson); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(_kSamplePackageJson); | |
final File pubspec = projectDir.childFile('pubspec.yaml') | |
..writeAsStringSync(_kSamplePubspecFile); | |
@@ -331,8 +331,8 @@ void main() { | |
environment.fileSystem.currentDirectory | |
.childDirectory('path_provider_linux') | |
.childFile('pubspec.yaml') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(_kSamplePluginPubspec); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(_kSamplePluginPubspec); | |
final File generatedMain = projectDir | |
.childDirectory('.dart_tool') | |
diff --git a/packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart b/packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart | |
index b2f48da..91bc0f5 100644 | |
--- a/packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/build_system/targets/web_test.dart | |
@@ -212,8 +212,8 @@ void main() { | |
() => testbed.run(() async { | |
final File mainFile = globals.fs | |
.file(globals.fs.path.join('other', 'lib', 'main.dart')) | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('void main() {}'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('void main() {}'); | |
environment.defines[kTargetFile] = mainFile.path; | |
await const WebEntrypointTarget().build(environment); | |
@@ -232,8 +232,8 @@ void main() { | |
() => testbed.run(() async { | |
final File mainFile = globals.fs | |
.file(globals.fs.path.join('other', 'lib', 'main.dart')) | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('void main() {}'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('void main() {}'); | |
environment.defines[kTargetFile] = mainFile.path; | |
environment.defines[kHasWebPlugins] = 'true'; | |
await const WebEntrypointTarget().build(environment); | |
diff --git a/packages/flutter_tools/test/general.shard/cache_test.dart b/packages/flutter_tools/test/general.shard/cache_test.dart | |
index 013479f..a62eb60 100644 | |
--- a/packages/flutter_tools/test/general.shard/cache_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/cache_test.dart | |
@@ -197,7 +197,7 @@ void main() { | |
..createSync(recursive: true); | |
final File noticeFile = fileSystem | |
.file(fileSystem.path.join(directory.path, 'NOTICE')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
await gradleWrapper.updateInner( | |
FakeArtifactUpdater(), fileSystem, operatingSystemUtils); | |
@@ -1053,7 +1053,7 @@ void main() { | |
final Directory gradleWrapperDir = cache | |
.getArtifactDirectory('gradle_wrapper') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
gradleWrapperDir.childFile('gradlew').writeAsStringSync('irrelevant'); | |
gradleWrapperDir.childFile('gradlew.bat').writeAsStringSync('irrelevant'); | |
diff --git a/packages/flutter_tools/test/general.shard/dart/pub_get_test.dart b/packages/flutter_tools/test/general.shard/dart/pub_get_test.dart | |
index 4062616..dacce01 100644 | |
--- a/packages/flutter_tools/test/general.shard/dart/pub_get_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/dart/pub_get_test.dart | |
@@ -505,7 +505,7 @@ void main() { | |
final Directory pubCache = fileSystem | |
.directory(Cache.flutterRoot) | |
.childDirectory('.pub-cache') | |
- ..createSync(); | |
+ ..createSync(); | |
final FakeProcessManager processManager = | |
FakeProcessManager.list(<FakeCommand>[ | |
FakeCommand( | |
diff --git a/packages/flutter_tools/test/general.shard/generate_localizations_test.dart b/packages/flutter_tools/test/general.shard/generate_localizations_test.dart | |
index 2a2ee30..01e590e 100644 | |
--- a/packages/flutter_tools/test/general.shard/generate_localizations_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/generate_localizations_test.dart | |
@@ -59,7 +59,7 @@ void _standardFlutterDirectoryL10nSetup(FileSystem fs) { | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(singleMessageArbFileString); | |
@@ -118,7 +118,7 @@ void main() { | |
.childDirectory('flutter_project') | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(singleMessageArbFileString); | |
@@ -176,7 +176,7 @@ void main() { | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(singleMessageArbFileString); | |
@@ -309,7 +309,7 @@ void main() { | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile('app_localizations_en.arb') | |
.writeAsStringSync(singleMessageArbFileString); | |
@@ -351,7 +351,7 @@ void main() { | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile('app_localizations_en.arb') | |
.writeAsStringSync(singleMessageArbFileString); | |
@@ -654,7 +654,7 @@ void main() { | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
// Create the directory 'lib/l10n/output'. | |
l10nDirectory.childDirectory('output'); | |
@@ -922,7 +922,7 @@ void main() { | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(singleMessageArbFileString); | |
@@ -1089,7 +1089,7 @@ flutter: | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
// Write files in non-alphabetical order so that read performs in that order | |
l10nDirectory | |
.childFile('app_zh.arb') | |
@@ -1129,7 +1129,7 @@ flutter: | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile('app_en.arb') | |
.writeAsStringSync(singleMessageArbFileString); | |
@@ -1172,7 +1172,7 @@ flutter: | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile('app_en.arb') | |
.writeAsStringSync(singleMessageArbFileString); | |
@@ -1209,7 +1209,7 @@ flutter: | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
// Write files in non-alphabetical order so that read performs in that order | |
l10nDirectory | |
.childFile('app_zh.arb') | |
@@ -1266,7 +1266,7 @@ flutter: | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile('first_file.arb') | |
.writeAsStringSync(arbFileWithEnLocale); | |
@@ -1319,7 +1319,7 @@ flutter: | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile('app_es.arb') | |
.writeAsStringSync(arbFileWithEnLocale); | |
@@ -1383,7 +1383,7 @@ flutter: | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile('app_en.arb') | |
.writeAsStringSync(singleMessageArbFileString); | |
@@ -1414,7 +1414,7 @@ flutter: | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile('app_en_US.arb') | |
.writeAsStringSync(singleMessageArbFileString); | |
@@ -1480,7 +1480,7 @@ flutter: | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory.childFile(defaultTemplateArbFileName).writeAsStringSync(r''' | |
{ | |
"title": "Title \n of the application", | |
@@ -1530,7 +1530,7 @@ flutter: | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory.childFile(defaultTemplateArbFileName).writeAsStringSync(r''' | |
{ | |
"price": "The price of this item is: ${price}", | |
@@ -1764,7 +1764,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(singleDateMessageArbFileString); | |
@@ -1810,7 +1810,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(singleDateMessageArbFileString); | |
@@ -1896,7 +1896,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(singleDateMessageArbFileString); | |
@@ -1942,7 +1942,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(pluralMessageWithoutPlaceholdersAttribute); | |
@@ -1984,7 +1984,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(pluralMessageWithEmptyPlaceholdersMap); | |
@@ -2022,7 +2022,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(pluralMessageWithoutResourceAttributes); | |
@@ -2062,7 +2062,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(pluralMessageWithIncorrectPlaceholderFormat); | |
@@ -2525,7 +2525,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(arbFileWithTrailingComma); | |
@@ -2566,7 +2566,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(arbFileWithMissingResourceAttribute); | |
@@ -2605,7 +2605,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(nonAlphaNumericArbFile); | |
@@ -2642,7 +2642,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(nonAlphaNumericArbFile); | |
@@ -2679,7 +2679,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(nonAlphaNumericArbFile); | |
@@ -2782,7 +2782,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e | |
final Directory l10nDirectory = fs.currentDirectory | |
.childDirectory('lib') | |
.childDirectory('l10n') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
l10nDirectory | |
.childFile(defaultTemplateArbFileName) | |
.writeAsStringSync(arbFile); | |
diff --git a/packages/flutter_tools/test/general.shard/ios/devices_test.dart b/packages/flutter_tools/test/general.shard/ios/devices_test.dart | |
index cba9d6d..aa9772e 100644 | |
--- a/packages/flutter_tools/test/general.shard/ios/devices_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/ios/devices_test.dart | |
@@ -396,7 +396,9 @@ void main() { | |
logger: logger, | |
); | |
xcdevice.isInstalled = true; | |
- xcdevice.devices..add(<IOSDevice>[])..add(<IOSDevice>[device1, device2]); | |
+ xcdevice.devices | |
+ ..add(<IOSDevice>[]) | |
+ ..add(<IOSDevice>[device1, device2]); | |
int addedCount = 0; | |
final Completer<void> added = Completer<void>(); | |
diff --git a/packages/flutter_tools/test/general.shard/plugins_test.dart b/packages/flutter_tools/test/general.shard/plugins_test.dart | |
index 6b23952..9f2ee10 100644 | |
--- a/packages/flutter_tools/test/general.shard/plugins_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/plugins_test.dart | |
@@ -219,9 +219,9 @@ flutter: | |
.childDirectory('java') | |
.childDirectory('plugin1') | |
.childFile('UseNewEmbedding.java') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync( | |
- 'import io.flutter.embedding.engine.plugins.FlutterPlugin;'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync( | |
+ 'import io.flutter.embedding.engine.plugins.FlutterPlugin;'); | |
flutterProject.directory.childFile('.packages').writeAsStringSync( | |
'plugin1:${pluginUsingJavaAndNewEmbeddingDir.childDirectory('lib').uri.toString()}\n', | |
@@ -248,9 +248,9 @@ flutter: | |
.childDirectory('plugin1') | |
.childDirectory('correct') | |
.childFile('UseNewEmbedding.java') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync( | |
- 'import io.flutter.embedding.engine.plugins.FlutterPlugin;'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync( | |
+ 'import io.flutter.embedding.engine.plugins.FlutterPlugin;'); | |
flutterProject.directory.childFile('.packages').writeAsStringSync( | |
'plugin1:${pluginUsingJavaAndNewEmbeddingDir.childDirectory('lib').uri.toString()}\n', | |
@@ -278,9 +278,9 @@ flutter: | |
.childDirectory('kotlin') | |
.childDirectory('plugin2') | |
.childFile('UseNewEmbedding.kt') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync( | |
- 'import io.flutter.embedding.engine.plugins.FlutterPlugin'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync( | |
+ 'import io.flutter.embedding.engine.plugins.FlutterPlugin'); | |
flutterProject.directory.childFile('.packages').writeAsStringSync( | |
'plugin2:${pluginUsingKotlinAndNewEmbeddingDir.childDirectory('lib').uri.toString()}\n', | |
@@ -330,11 +330,11 @@ flutter: | |
.childDirectory('java') | |
.childDirectory('plugin4') | |
.childFile('UseBothEmbedding.java') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync( | |
- 'import io.flutter.embedding.engine.plugins.FlutterPlugin;\n' | |
- 'PluginRegistry\n' | |
- 'registerWith(Irrelevant registrar)\n'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync( | |
+ 'import io.flutter.embedding.engine.plugins.FlutterPlugin;\n' | |
+ 'PluginRegistry\n' | |
+ 'registerWith(Irrelevant registrar)\n'); | |
flutterProject.directory.childFile('.packages').writeAsStringSync( | |
'plugin4:${pluginUsingJavaAndNewEmbeddingDir.childDirectory('lib').uri.toString()}', | |
diff --git a/packages/flutter_tools/test/general.shard/project_test.dart b/packages/flutter_tools/test/general.shard/project_test.dart | |
index ed706ff..dd1b099 100644 | |
--- a/packages/flutter_tools/test/general.shard/project_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/project_test.dart | |
@@ -970,8 +970,8 @@ void addIosProjectFile(Directory directory, | |
.childDirectory('ios') | |
.childDirectory('Runner.xcodeproj') | |
.childFile('project.pbxproj') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(projectFileContent()); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(projectFileContent()); | |
} | |
void addAndroidGradleFile(Directory directory, | |
@@ -980,8 +980,8 @@ void addAndroidGradleFile(Directory directory, | |
.childDirectory('android') | |
.childDirectory('app') | |
.childFile('build.gradle') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(gradleFileContent()); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(gradleFileContent()); | |
} | |
void addAndroidWithGroup(Directory directory, String id) { | |
diff --git a/packages/flutter_tools/test/general.shard/resident_runner_test.dart b/packages/flutter_tools/test/general.shard/resident_runner_test.dart | |
index 70465e2..54ed788 100644 | |
--- a/packages/flutter_tools/test/general.shard/resident_runner_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/resident_runner_test.dart | |
@@ -1289,7 +1289,7 @@ void main() { | |
() => testbed.run(() async { | |
final File arbFile = globals.fs | |
.file(globals.fs.path.join('lib', 'l10n', 'app_en.arb')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
arbFile.writeAsStringSync(''' | |
{ | |
"helloWorld": "Hello, World!", | |
@@ -1340,7 +1340,7 @@ void main() { | |
// to app_en.arb. | |
final File arbFile = globals.fs | |
.file(globals.fs.path.join('lib', 'l10n', 'foo.arb')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
arbFile.writeAsStringSync(''' | |
{ | |
"helloWorld": "Hello, World!", | |
diff --git a/packages/flutter_tools/test/general.shard/runner/local_engine_test.dart b/packages/flutter_tools/test/general.shard/runner/local_engine_test.dart | |
index aafffb2..44ef6c2 100644 | |
--- a/packages/flutter_tools/test/general.shard/runner/local_engine_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/runner/local_engine_test.dart | |
@@ -103,7 +103,7 @@ void main() { | |
final FileSystem fileSystem = MemoryFileSystem.test(); | |
final Directory localEngine = fileSystem | |
.directory('$kArbitraryEngineRoot/src/out/winuwp_debug_unopt/') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
fileSystem | |
.directory('$kArbitraryEngineRoot/src/out/winuwp_debug_unopt/') | |
.createSync(recursive: true); | |
@@ -132,7 +132,7 @@ void main() { | |
final FileSystem fileSystem = MemoryFileSystem.test(); | |
final Directory localEngine = fileSystem | |
.directory('$kArbitraryEngineRoot/src/out/ios_debug/') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
fileSystem | |
.directory('$kArbitraryEngineRoot/src/out/host_debug/') | |
.createSync(recursive: true); | |
@@ -165,7 +165,7 @@ void main() { | |
final FileSystem fileSystem = MemoryFileSystem.test(); | |
final Directory localEngine = fileSystem | |
.directory('$kArbitraryEngineRoot/src/out/host_debug/') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
final BufferLogger logger = BufferLogger.test(); | |
final LocalEngineLocator localEngineLocator = LocalEngineLocator( | |
@@ -191,7 +191,7 @@ void main() { | |
final FileSystem fileSystem = MemoryFileSystem.test(); | |
final Directory localEngine = fileSystem | |
.directory('$kArbitraryEngineRoot/src/out/ios_debug/') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
final LocalEngineLocator localEngineLocator = LocalEngineLocator( | |
fileSystem: fileSystem, | |
diff --git a/packages/flutter_tools/test/general.shard/tracing_test.dart b/packages/flutter_tools/test/general.shard/tracing_test.dart | |
index fe6801e..89423e4 100644 | |
--- a/packages/flutter_tools/test/general.shard/tracing_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/tracing_test.dart | |
@@ -111,7 +111,7 @@ void main() { | |
// Validate that old tracing data is deleted. | |
final File outFile = fileSystem.currentDirectory | |
.childFile('start_up_info.json') | |
- ..writeAsStringSync('stale'); | |
+ ..writeAsStringSync('stale'); | |
await downloadStartupTrace( | |
fakeVmServiceHost.vmService, | |
@@ -326,7 +326,7 @@ void main() { | |
// Validate that old tracing data is deleted. | |
final File timelineFile = fileSystem.currentDirectory | |
.childFile('start_up_timeline.json') | |
- ..writeAsStringSync('stale'); | |
+ ..writeAsStringSync('stale'); | |
await downloadStartupTrace( | |
fakeVmServiceHost.vmService, | |
diff --git a/packages/flutter_tools/test/general.shard/update_packages_test.dart b/packages/flutter_tools/test/general.shard/update_packages_test.dart | |
index 57bd36e..e4e3947 100644 | |
--- a/packages/flutter_tools/test/general.shard/update_packages_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/update_packages_test.dart | |
@@ -94,14 +94,14 @@ void main() { | |
final Directory flutter = flutterSdk | |
.childDirectory('packages') | |
.childDirectory('flutter') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
flutter.childFile('pubspec.yaml').writeAsStringSync(kFlutterPubspecYaml); | |
// A stray extra package should not cause a crash. | |
final Directory extra = flutterSdk | |
.childDirectory('packages') | |
.childDirectory('extra') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
extra.childFile('pubspec.yaml').writeAsStringSync(kExtraPubspecYaml); | |
// Create already parsed pubspecs. | |
@@ -165,7 +165,7 @@ void main() { | |
final Directory flutter = flutterSdk | |
.childDirectory('packages') | |
.childDirectory('flutter') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
flutter.childFile('pubspec.yaml').writeAsStringSync(kInvalidGitPubspec); | |
expect( | |
diff --git a/packages/flutter_tools/test/general.shard/vscode/vscode_test.dart b/packages/flutter_tools/test/general.shard/vscode/vscode_test.dart | |
index 5a3456f..5b96d7e 100644 | |
--- a/packages/flutter_tools/test/general.shard/vscode/vscode_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/vscode/vscode_test.dart | |
@@ -41,8 +41,8 @@ void main() { | |
// Create invalid JSON file. | |
fileSystem | |
.file(fileSystem.path.join('', 'resources', 'app', 'package.json')) | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('{'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('{'); | |
final VsCode vsCode = VsCode.fromDirectory('', '', fileSystem: fileSystem); | |
diff --git a/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart b/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart | |
index 3a84440..42cd7b0 100644 | |
--- a/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/web/devfs_web_test.dart | |
@@ -734,8 +734,8 @@ void main() { | |
() => testbed.run(() async { | |
final File source = globals.fs | |
.file(globals.fs.path.join('build', 'flutter_assets', 'foo')) | |
- ..createSync(recursive: true) | |
- ..writeAsBytesSync(List<int>.filled(100, 0)); | |
+ ..createSync(recursive: true) | |
+ ..writeAsBytesSync(List<int>.filled(100, 0)); | |
final Response response = await webAssetServer.handleRequest( | |
Request('GET', Uri.parse('http://foobar/assets/foo'))); | |
@@ -756,8 +756,8 @@ void main() { | |
() => testbed.run(() async { | |
final File source = globals.fs | |
.file(globals.fs.path.join('build', 'flutter_assets', 'foo')) | |
- ..createSync(recursive: true) | |
- ..writeAsBytesSync(<int>[1, 2, 3]); | |
+ ..createSync(recursive: true) | |
+ ..writeAsBytesSync(<int>[1, 2, 3]); | |
final Response response = await webAssetServer.handleRequest( | |
Request('GET', Uri.parse('http://foobar/assets/foo'))); | |
@@ -778,8 +778,8 @@ void main() { | |
() => testbed.run(() async { | |
globals.fs | |
.file(globals.fs.path.join('build', 'flutter_assets', 'fooπ')) | |
- ..createSync(recursive: true) | |
- ..writeAsBytesSync(<int>[1, 2, 3]); | |
+ ..createSync(recursive: true) | |
+ ..writeAsBytesSync(<int>[1, 2, 3]); | |
final Response response = await webAssetServer.handleRequest( | |
Request('GET', Uri.parse('http://foobar/assets/fooπ'))); | |
@@ -828,7 +828,7 @@ void main() { | |
() => testbed.run(() async { | |
final File outputFile = globals.fs | |
.file(globals.fs.path.join('lib', 'main.dart')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
outputFile.parent.childFile('a.sources').writeAsStringSync(''); | |
outputFile.parent.childFile('a.json').writeAsStringSync('{}'); | |
outputFile.parent.childFile('a.map').writeAsStringSync('{}'); | |
@@ -884,8 +884,8 @@ void main() { | |
globals.fs.currentDirectory | |
.childDirectory('lib') | |
.childFile('web_entrypoint.dart') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('GENERATED'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('GENERATED'); | |
globals.fs.file(webPrecompiledSdk) | |
..createSync(recursive: true) | |
..writeAsStringSync('HELLO'); | |
@@ -966,7 +966,7 @@ void main() { | |
() => testbed.run(() async { | |
final File outputFile = globals.fs | |
.file(globals.fs.path.join('lib', 'main.dart')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
outputFile.parent.childFile('a.sources').writeAsStringSync(''); | |
outputFile.parent.childFile('a.json').writeAsStringSync('{}'); | |
outputFile.parent.childFile('a.map').writeAsStringSync('{}'); | |
@@ -1008,8 +1008,8 @@ void main() { | |
globals.fs.currentDirectory | |
.childDirectory('lib') | |
.childFile('web_entrypoint.dart') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync('GENERATED'); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync('GENERATED'); | |
final String webPrecompiledSdk = globals.artifacts | |
.getHostArtifact(HostArtifact.webPrecompiledSoundSdk) | |
.path; | |
@@ -1102,7 +1102,7 @@ void main() { | |
() => testbed.run(() async { | |
final File outputFile = globals.fs | |
.file(globals.fs.path.join('lib', 'main.dart')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
outputFile.parent.childFile('a.sources').writeAsStringSync(''); | |
outputFile.parent.childFile('a.json').writeAsStringSync('{}'); | |
outputFile.parent.childFile('a.map').writeAsStringSync('{}'); | |
@@ -1140,7 +1140,7 @@ void main() { | |
() => testbed.run(() async { | |
final File outputFile = globals.fs | |
.file(globals.fs.path.join('lib', 'main.dart')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
outputFile.parent.childFile('a.sources').writeAsStringSync(''); | |
outputFile.parent.childFile('a.json').writeAsStringSync('{}'); | |
outputFile.parent.childFile('a.map').writeAsStringSync('{}'); | |
@@ -1184,7 +1184,7 @@ void main() { | |
() => testbed.run(() async { | |
final File outputFile = globals.fs | |
.file(globals.fs.path.join('lib', 'main.dart')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
outputFile.parent.childFile('a.sources').writeAsStringSync(''); | |
outputFile.parent.childFile('a.json').writeAsStringSync('{}'); | |
outputFile.parent.childFile('a.map').writeAsStringSync('{}'); | |
@@ -1274,8 +1274,8 @@ void main() { | |
globals.fs.currentDirectory | |
.childDirectory('web') | |
.childFile('index.html') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(htmlContent); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(htmlContent); | |
final WebAssetServer webAssetServer = WebAssetServer( | |
FakeHttpServer(), | |
PackageConfig.empty, | |
@@ -1301,14 +1301,14 @@ void main() { | |
() => testbed.run(() async { | |
final File outputFile = globals.fs | |
.file(globals.fs.path.join('lib', 'main.dart')) | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
const String htmlContent = | |
'<html><head><base href="/foo/"></head><body id="test"></body></html>'; | |
globals.fs.currentDirectory | |
.childDirectory('web') | |
.childFile('index.html') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(htmlContent); | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(htmlContent); | |
outputFile.parent.childFile('a.sources').writeAsStringSync(''); | |
outputFile.parent.childFile('a.json').writeAsStringSync('{}'); | |
outputFile.parent.childFile('a.map').writeAsStringSync('{}'); | |
diff --git a/packages/flutter_tools/test/general.shard/windows/install_manifest_test.dart b/packages/flutter_tools/test/general.shard/windows/install_manifest_test.dart | |
index 61054d2..39d92ff 100644 | |
--- a/packages/flutter_tools/test/general.shard/windows/install_manifest_test.dart | |
+++ b/packages/flutter_tools/test/general.shard/windows/install_manifest_test.dart | |
@@ -105,8 +105,8 @@ void main() { | |
fileSystem.currentDirectory | |
.childDirectory('.dart_tool') | |
.childFile('package_config.json') | |
- ..createSync(recursive: true) | |
- ..writeAsStringSync(''' | |
+ ..createSync(recursive: true) | |
+ ..writeAsStringSync(''' | |
{ | |
"configVersion": 2, | |
"packages": [] | |
diff --git a/packages/flutter_tools/test/integration.shard/command_output_test.dart b/packages/flutter_tools/test/integration.shard/command_output_test.dart | |
index d5408ef..29da428 100644 | |
--- a/packages/flutter_tools/test/integration.shard/command_output_test.dart | |
+++ b/packages/flutter_tools/test/integration.shard/command_output_test.dart | |
@@ -102,7 +102,7 @@ void main() { | |
final Directory directory = | |
createResolvedTempDirectorySync('flutter_run_test.') | |
.createTempSync('_flutter_run_test.') | |
- ..createSync(recursive: true); | |
+ ..createSync(recursive: true); | |
try { | |
directory.childFile('pubspec.yaml').writeAsStringSync('name: foo'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment