isConst property

bool isConst

Whether this expression implies a const context for sub expressions.

Collection literals that are const imply const for all values. Assignment to a const variable implies a const value. Invoking a const constructor implies const for all arguments.

The implied const context is used to omit redundant const keywords. A value of false does not imply that the expression cannot be used in a const context.

Implementation

bool get isConst => false;