Skip to content

Commit f35d29e

Browse files
committed
Update Dart style
1 parent d625379 commit f35d29e

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

packages/flutter_tools/lib/src/build_info.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ const kAppFlavor = 'FLUTTER_APP_FLAVOR';
10271027
/// dartDefines.
10281028
///
10291029
/// This tells the framework which features are on.
1030-
const String kEnabledFeatureFlags = 'FLUTTER_ENABLED_FEATURE_FLAGS';
1030+
const kEnabledFeatureFlags = 'FLUTTER_ENABLED_FEATURE_FLAGS';
10311031

10321032
/// The Xcode configuration used to build the project.
10331033
const kXcodeConfiguration = 'Configuration';

packages/flutter_tools/test/general.shard/features_test.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,13 @@ void main() {
142142

143143
testUsingContext('Feature runtime IDs are valid', () {
144144
// Verify features' runtime IDs can be encoded into a Dart define.
145-
final RegExp runtimeIdPattern = RegExp(r'^[a-zA-Z_]+$');
145+
final runtimeIdPattern = RegExp(r'^[a-zA-Z_]+$');
146146
assert(runtimeIdPattern.hasMatch('multi_window'));
147147
assert(!runtimeIdPattern.hasMatch('multi-window'));
148148

149-
final Iterable<String> runtimeIds =
150-
featureFlags.allFeatures.map((Feature feature) => feature.runtimeId).nonNulls;
149+
final Iterable<String> runtimeIds = featureFlags.allFeatures
150+
.map((Feature feature) => feature.runtimeId)
151+
.nonNulls;
151152

152153
expect(
153154
runtimeIds,

packages/flutter_tools/test/general.shard/runner/flutter_command_test.dart

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,12 +1578,12 @@ Use the "flutter config" command to enable feature flags.''',
15781578
);
15791579
},
15801580
overrides: <Type, Generator>{
1581-
DeviceManager:
1582-
() => FakeDeviceManager()..attachedDevices = <Device>[FakeDevice('name', 'id')],
1581+
DeviceManager: () =>
1582+
FakeDeviceManager()..attachedDevices = <Device>[FakeDevice('name', 'id')],
15831583
Platform: () => FakePlatform(),
15841584
Cache: () => Cache.test(processManager: FakeProcessManager.any()),
15851585
FileSystem: () {
1586-
final MemoryFileSystem fileSystem = MemoryFileSystem.test();
1586+
final fileSystem = MemoryFileSystem.test();
15871587
fileSystem
15881588
..file('lib/main.dart').createSync(recursive: true)
15891589
..file('pubspec.yaml').createSync()
@@ -1601,22 +1601,21 @@ Use the "flutter config" command to enable feature flags.''',
16011601
testUsingContext(
16021602
'FLUTTER_ENABLED_FEATURE_FLAGS is set in dartDefines',
16031603
() async {
1604-
final DummyFlutterCommand flutterCommand = DummyFlutterCommand(packagesPath: 'foo');
1604+
final flutterCommand = DummyFlutterCommand(packagesPath: 'foo');
16051605
final BuildInfo buildInfo = await flutterCommand.getBuildInfo(
16061606
forcedBuildMode: BuildMode.debug,
16071607
);
16081608
expect(buildInfo.dartDefines, contains('FLUTTER_ENABLED_FEATURE_FLAGS=buzz_feature'));
16091609
},
16101610
overrides: <Type, Generator>{
16111611
ProcessManager: () => FakeProcessManager.any(),
1612-
FeatureFlags:
1613-
() => const FakeFeatureFlags(
1614-
allFeatures: <FakeFeature>[
1615-
FakeFeature(name: 'Foo', enabled: true),
1616-
FakeFeature(name: 'Bar', runtimeId: 'bar_feature', enabled: false),
1617-
FakeFeature(name: 'Buzz', runtimeId: 'buzz_feature', enabled: true),
1618-
],
1619-
),
1612+
FeatureFlags: () => const FakeFeatureFlags(
1613+
allFeatures: <FakeFeature>[
1614+
FakeFeature(name: 'Foo', enabled: true),
1615+
FakeFeature(name: 'Bar', runtimeId: 'bar_feature', enabled: false),
1616+
FakeFeature(name: 'Buzz', runtimeId: 'buzz_feature', enabled: true),
1617+
],
1618+
),
16201619
},
16211620
);
16221621
});

0 commit comments

Comments
 (0)