isFinal property

  1. @override
bool get isFinal
inherited

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

Variables that are declared with the 'const' modifier will return false even though they are implicitly final.

Implementation

@override
bool get isFinal {
  return hasModifier(Modifier.FINAL);
}
set isFinal (bool isFinal)
inherited

Set whether this variable is final.

Implementation

set isFinal(bool isFinal) {
  setModifier(Modifier.FINAL, isFinal);
}