nearestScope property

FocusScopeNode? nearestScope

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

FocusScopeNode? get nearestScope => enclosingScope;