File tree Expand file tree Collapse file tree
packages/from_json_generator/lib/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/// Configuration values defined in build.yaml.
22class BuildYamlConfig {
33 /// Creates a [BuildYamlConfig] .
4- BuildYamlConfig ({required this .convertSnakeToCamel});
4+ const BuildYamlConfig ({required this .convertSnakeToCamel});
55
66 /// Decode the options from a build.yaml.
77 factory BuildYamlConfig .fromBuildYaml (Map <String , dynamic > yaml) =>
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import 'utils/dart_object_util.dart';
1212/// A generator for [FromJson] annotation.
1313class FromJsonGenerator extends GeneratorForAnnotation <FromJson > {
1414 /// Creates a new instance of [FromJsonGenerator] .
15- FromJsonGenerator (this ._buildYamlConfig);
15+ const FromJsonGenerator (this ._buildYamlConfig);
1616
1717 /// A [BuildYamlConfig] instance.
1818 final BuildYamlConfig _buildYamlConfig;
You can’t perform that action at this time.
0 commit comments