getIsFinal method

  1. @override
bool getIsFinal()
override

Returns true if this class is declared as final.

Final classes cannot be extended, mixed in, or subclassed. This guarantees a closed inheritance hierarchy for the type.

Use cases

  • Security-sensitive types
  • Performance-critical or invariant-dependent implementations

Implementation

@override
bool getIsFinal() => _isFinal;