Macros: Serialisation issue from different file #56646
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
feature-macros
Implementation of the macros feature
pkg-macros
The experimental package:_macros library
Steps to reproduce
1. Create a Flutter project with macros enabled, in the Flutter and Dart versions mentioned below.
2. Enable the macros.
enhanced-parts
will be required now due to the following dart-lang/language#40723. Create two files
model.dart
andmodel_two.dart
(check code in code sample)
4. Run
After running to project and hot reloading it. The following error will appear.
Issue
But currently the model that is being imported from the
model_two.dart
file gives a the serialization error.The same model when placed in the same file as
model.dart
does not give the error. The error only seems to occur on models that are being imported from outside files.MainModel
containsTestOne
model which is located in themodel.dart
file and aTestTwo
model which is located in themodel_two.dart
file. The error is only given on theTestTwo
model.Code Sample
Code sample
The text was updated successfully, but these errors were encountered: