Home dart: final static const
Post
Cancel

dart: final static const

the differences between final/static/const in dart lang(flutter):

  • final : means a variable has only one time to be assigned the value , not meaing the value’s unmutable, but meaning the variable cannot assign an other value again.
  • static : likes JAVA , meaning a member of the class but not any instances of it.
  • const : meaning the value ( not any variable) and can provide better performance at runtime (especially in a listview)

ref: const-static-final

This post is licensed under CC BY 4.0 by the author.