isFinal property

  1. @override
bool 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);
}
void isFinal=(bool isFinal)
inherited

Set whether this variable is final.

Implementation

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