isFinal property

  1. @override
bool isFinal
override

Return true if the variables in this list were declared with the 'final' modifier.

Variables that are declared with the 'const' modifier will return false even though they are implicitly final. (In other words, this is a syntactic check rather than a semantic check.)

Implementation

@override
bool get isFinal => keyword?.keyword == Keyword.FINAL;