isConst property

  1. @override
bool get isConst
inherited

Whether the variable was declared with the 'const' modifier.

Implementation

@override
bool get isConst {
  return hasModifier(Modifier.CONST);
}
set isConst (bool isConst)
inherited

Set whether this variable is const.

Implementation

set isConst(bool isConst) {
  setModifier(Modifier.CONST, isConst);
}