isConst property
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
@override
bool get isConst {
return constKeyword != null || inConstantContext;
}