2 thoughts on “What is the purpose of const[]

  1. Please see https://dart.dev/guides/language/language-tour#final-and-const for an explanation of const.
    The gist of it is
    ‘Use const for variables that you want to be compile-time constants. If the const variable is at the class level, mark it static const. Where you declare the variable, set the value to a compile-time constant such as a number or string literal, a const variable, or the result of an arithmetic operation on constant numbers’

  2. It is great that you found the answer to your question.
    Please refrain from such comments that serve no purpose.

Comments are closed.