hasPrimaryFocus property

bool get hasPrimaryFocus

Whether this node has primary focus, meaning it is focused and none of its children are.

Implementation

bool get hasPrimaryFocus =>
    _isFocused && children.every((c) => !c._isFocused);