annotations - Flutter immutable class? -


ide recognised storewatcher flutter widget immutable. @immutable annotation? not in store_watcher.dart source code.

enter image description here

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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -