focused property

bool focused
final

If non-null, whether the node currently holds input focus.

At most one node in the tree should hold input focus at any point in time.

Input focus (indicates that the node will receive keyboard events) is not to be confused with accessibility focus. Accessibility focus is the green/black rectangular that TalkBack/VoiceOver on the screen and is separate from input focus.

Implementation

final bool focused