Closed johnpryan closed 1 year ago
This could be user-error... Here's the PR that upgrades DartPad's packages and generates the code in question: https://github.com/dart-lang/dart-pad/pull/2537/files#diff-071bfc91ddc6e946fd3acdf30253c80cd2456a26ec7562a83fc47166068167b5
duplicate of https://github.com/google/json_serializable.dart/issues/517
It makes code SUPER crazy. Suggest just ignoring this error in generated code per https://github.com/dart-lang/source_gen#configuring-combining_builder
Sounds good, we can put an ignore in the preamble.
When strict-raw-types is enabled, the generated code produces a warning: