@@ -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