A (hopefully reproduceable) example of a bug in the dart_mappable package which causes certain types like Color to be
unrecognised and generated as InvalidType instead of Color.
- Clone this repository
- Run
flutter cleanto ensure all generated files are deleted - Run
flutter pub getto install all dependencies - Open
lib/edge.dartand see that theColortype is present - Run
dart run build_runner build --delete-conflicting-outputsto generate the files - Open
lib/edge.mapper.dartand see that theColortype is not present and insteadInvalidTypeis used
static InvalidType _$color(EdgeUi v) => v.color;
static const Field<EdgeUi, InvalidType> _f$color =
Field('color', _$color, opt: true, def: Colors.blue);