nearestScope property

  1. @override
FocusScopeNode nearestScope
override

Returns the nearest enclosing scope node above this node, including this node, if it's a scope.

Returns null if no scope is found.

Use enclosingScope to look for scopes above this node.

Implementation

@override
FocusScopeNode get nearestScope => this;