annotations - Flutter immutable class? -
ide recognised storewatcher
flutter widget immutable. @immutable
annotation? not in store_watcher.dart source code.
the annotation meta package
the docs say
used annotate class c. indicates c , subtypes of c must immutable.
a class immutable if of instance fields of class, whether defined directly or inherited, final.
tools, such analyzer, can provide feedback if
the annotation associated other class, or class has annotation or extends, implements or mixes in class has annotation not immutable.
not annotation cause expected feedback yet. might need enable linter rules. might planned yet supported analyzer or linter.
Comments
Post a Comment