-
Type: Improvement
-
Resolution: Fixed
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: None
-
1 - XS (<= 1 day)
-
1
-
1357
-
Needed
Problem
The current version realm_generator 1.3.0 depends on an older version of the Flutter analyzer package.
This version contains regressions which are fixed in analyzer 6.0.0. The new version makes the code gen step of our project 400% faster again.
dependency_overrides does not work:
realm_generator-1.3.0/lib/src/field_element_ex.dart:190:25: Error: The getter 'enclosingElement3' isn't defined for the class 'FieldElement'. - 'FieldElement' is from 'package:analyzer/dart/element/element.dart' ('../../../caches/pub_cache/hosted/pub.dev/analyzer-6.0.0/lib/dart/element/element.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'enclosingElement3'. final modelSpan = enclosingElement3.span!;
Solution
Upgrade the dependency.
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only