Question: what is the difference between final and const in dart?
Answer: Final and const A final variable can be set only once; a const variable is a compile-time constant. (Const variables are implicitly final.) A final top-level or class variable is initialized the first time it's used. Note: Instance variables can be final but not const .