I have added JsonCodable to Latest flutter verion 3.22.0 for JsonData class. But some how Dart analysis server is throwing error. I have also added macros to pubspec.yaml and made enable-experiment to this file.
Pubspec.yaml
Analysis Options.yaml
my_code.dart
2
I am on Flutter 3.22.0, doc says I need to be on Flutter master channel.
https://dart.dev/language/macros#the-jsoncodable-macro
For that annotation you need to add json: ^0.20.1 package in your pubspec.yaml
json: ^0.20.1
See
Click here to cancel reply.
2
Answers
I am on Flutter 3.22.0, doc says I need to be on Flutter master channel.
https://dart.dev/language/macros#the-jsoncodable-macro
For that annotation you need to add
json: ^0.20.1
package in your pubspec.yamlSee