Describe the bug
Upon upgrading Flutter from version 3.13.4 to 3.19.4, specifying only variables as values in JSON ceased to convert them to strings.
To Reproduce
Add the following definition to a json file:
"hoge": "{hoge}",
The following Dart code is generated:
String hoge({required Object hoge}) => hoge;
When trying to execute, the following error occurs:
ib/i18n/strings.g.dart:634:64: Error: A value of type 'Object' can't be returned from a function with return type 'String'.
- 'Object' is from 'dart:core'.
String hoge({required Object hoge}) => hoge;
Expected behavior
Previously, the following code was generated:
String hoge({required Object hoge}) => '$hoge';
Additional context
Add any other context about the problem here.
Describe the bug Upon upgrading Flutter from version 3.13.4 to 3.19.4, specifying only variables as values in JSON ceased to convert them to strings.
To Reproduce
Expected behavior Previously, the following code was generated:
Additional context Add any other context about the problem here.