focusNode property

FocusNode? focusNode
final

An optional focus node to use as the focus node for the follower.

If one is not supplied, then one will be automatically allocated, owned, and managed by the follower. The follower will be focusable even if a focusNode is not supplied. If supplied, the given focusNode will be hosted by the follower but not owned. See FocusNode for more information on what being hosted and/or owned implies.

Supplying a focus node is sometimes useful if an ancestor to the follower wants to control when the follower has the focus. The owner will be responsible for calling FocusNode.dispose on the focus node when it is done with it, but the follower will attach/detach and reparent the node when needed.

Implementation

final FocusNode? focusNode;