isConst property

bool isConst

Return true if this literal is a constant expression, either because the keyword const was explicitly provided or because no keyword was provided and this expression is in a constant context.

Implementation

bool get isConst;