hasFocus property

bool get hasFocus

Returns true when any widget is focused.

Implementation

bool get hasFocus => _focusedId != null;