anchor.diff:      /// Flutter Web
   
       testWithoutContext('Flutter web off by default on master', () {
  -      when(mockFlutterVerion.channel).thenReturn('master');
  +      final FeatureFlags featureFlags = createFlags('master');
   
         expect(featureFlags.isWebEnabled, false);
       });
   
       testWithoutContext('Flutter web enabled with config on master', () {
  -      when(mockFlutterVerion.channel).thenReturn('master');
  +      final FeatureFlags featureFlags = createFlags('master');
         testConfig.setValue('enable-web', true);
   
         expect(featureFlags.isWebEnabled, true);
       });
   
       testWithoutContext('Flutter web enabled with environment variable on master', () {
  -      when(mockFlutterVerion.channel).thenReturn('master');
  -      when(mockPlatform.environment).thenReturn(<String, String>{'FLUTTER_WEB': 'true'});
  +      final FeatureFlags featureFlags = createFlags('master');
  +      platform.environment = <String, String>{'FLUTTER_WEB': 'true'};
   
         expect(featureFlags.isWebEnabled, true);
       });
   
       testWithoutContext('Flutter web off by default on dev', () {
  -      when(mockFlutterVerion.channel).thenReturn('dev');
  +      final FeatureFlags featureFlags = createFlags('dev');
   
         expect(featureFlags.isWebEnabled, false);
       });
   
       testWithoutContext('Flutter web enabled with config on dev', () {
  -      when(mockFlutterVerion.channel).thenReturn('dev');
  +      final FeatureFlags featureFlags = createFlags('dev');
         testConfig.setValue('enable-web', true);
   
         expect(featureFlags.isWebEnabled, true);
       });
   
       testWithoutContext('Flutter web enabled with environment variable on dev', () {
  -      when(mockFlutterVerion.channel).thenReturn('dev');
  -      when(mockPlatform.environment).thenReturn(<String, String>{'FLUTTER_WEB': 'true'});
  +      final FeatureFlags featureFlags = createFlags('dev');
  +      platform.environment = <String, String>{'FLUTTER_WEB': 'true'};
   
         expect(featureFlags.isWebEnabled, true);
       });
   
       testWithoutContext('Flutter web off by default on beta', () {
  -      when(mockFlutterVerion.channel).thenReturn('beta');
  +      final FeatureFlags featureFlags = createFlags('beta');
   
         expect(featureFlags.isWebEnabled, false);
       });
   
       testWithoutContext('Flutter web enabled with config on beta', () {
  -      when(mockFlutterVerion.channel).thenReturn('beta');
  +      final FeatureFlags featureFlags = createFlags('beta');
         testConfig.setValue('enable-web', true);
   
         expect(featureFlags.isWebEnabled, true);
       });
   
       testWithoutContext('Flutter web not enabled with environment variable on beta', () {
  -      when(mockFlutterVerion.channel).thenReturn('beta');
  -      when(mockPlatform.environment).thenReturn(<String, String>{'FLUTTER_WEB': 'true'});
  +     final FeatureFlags featureFlags = createFlags('beta');
  +      platform.environment = <String, String>{'FLUTTER_WEB': 'true'};
   
         expect(featureFlags.isWebEnabled, true);
       });
   
       testWithoutContext('Flutter web on by default on stable', () {
  -      when(mockFlutterVerion.channel).thenReturn('stable');
  +      final FeatureFlags featureFlags = createFlags('stable');
         testConfig.removeValue('enable-web');
   
         expect(featureFlags.isWebEnabled, true);
       });
   
       testWithoutContext('Flutter web enabled with config on stable', () {
  -      when(mockFlutterVerion.channel).thenReturn('stable');
  +      final FeatureFlags featureFlags = createFlags('stable');
         testConfig.setValue('enable-web', true);
   
         expect(featureFlags.isWebEnabled, true);
       });
   
       testWithoutContext('Flutter web not enabled with environment variable on stable', () {
  -      when(mockFlutterVerion.channel).thenReturn('stable');
  -      when(mockPlatform.environment).thenReturn(<String, String>{'FLUTTER_WEB': 'enabled'});
  +      final FeatureFlags featureFlags = createFlags('stable');
  +      platform.environment = <String, String>{'FLUTTER_WEB': 'enabled'};
   
         expect(featureFlags.isWebEnabled, false);
       });
  
positive.code:     });
  
      testWithoutContext('retrieves the correct setting for each branch', () {
        final FeatureChannelSetting masterSetting = FeatureChannelSetting(available: nonconst(true));
        final FeatureChannelSetting devSetting = FeatureChannelSetting(available: nonconst(true));
        final FeatureChannelSetting betaSetting = FeatureChannelSetting(available: nonconst(true));
        final FeatureChannelSetting stableSetting = FeatureChannelSetting(available: nonconst(true));
        final Feature feature = Feature(
          name: 'example',
          master: masterSetting,
          dev: devSetting,
  
negative.code:     });
  
      testWithoutContext('env variables are only enabled with "true" string', () {
        platform.environment = <String, String>{'FLUTTER_WEB': 'hello'};
  
        expect(featureFlags.isWebEnabled, false);
  
        platform.environment = <String, String>{'FLUTTER_WEB': 'true'};
  
        expect(featureFlags.isWebEnabled, true);
      });
  