Description
The generated fromString switch statement produces throw throw Exception('Invalid flavor') instead of throw Exception('Invalid flavor'). The duplicate throw is a bug in the mustache template at lib/src/utility/src/dart_configuration_generator.dart:74.
Steps to reproduce
- Add two or more flavors to
dart_define.yaml
- Run
dart_define generate
- Inspect the generated
.g.dart file: the FlavorExtension.fromString
default case contains throw throw Exception('Invalid flavor')
Free word
No response
Platform
No response
Description
The generated
fromStringswitch statement producesthrow throw Exception('Invalid flavor')instead ofthrow Exception('Invalid flavor'). The duplicate throw is a bug in the mustache template atlib/src/utility/src/dart_configuration_generator.dart:74.Steps to reproduce
dart_define.yamldart_define generate.g.dart file: theFlavorExtension.fromStringdefault case contains
throw throw Exception('Invalid flavor')Free word
No response
Platform
No response