What is the difference in between ''const'' and ''final'' keyword in Dart?
What is the difference between const and final keyword in Dart? There is a post on dart's website and it explains it pretty well. Final: "final" means single-assignment: a final variable or field must have an initializer. Once assigned a value, a final variable's value cannot be changed. final modifies variables . Const: "const" has a meaning that's a bit more complex and subtle in Dart. const modifies values . You can use it when creating collections, like const [1, 2, 3], and when constructing objects (instead of new) like const Point(2, 3). Here, const means that the object's entire deep