Upgrading source_gen 3 to 4
Breaking3.1.0 → 4.3.1Breaking1New3Changed13Fixed3
BreakingUpgrade verdict
1 breaking change.
In plain terms
- A helper for looking up types by runtime reflection is gone. Use the named-type lookup instead, which also lets your code be compiled ahead of time for better performance.
Must act 1 item needs code or config changes
Dart SDK requirement changed in 4.3.0: ^3.7.0 → ^3.11.0.
What you must change
Breaking1
Removes TypeChecker.fromRuntime; use TypeChecker.typeNamed instead, eliminating dart:mirror so builders can be AOT compiled.
TypeChecker.fromRuntimeTypeChecker.typeNameddart:mirror