hasFocus property

bool get hasFocus
inherited

whether field has been focused

always return null if widget has no FormeFieldState.focusNode

Implementation

bool get hasFocus => _currentFocusNode?.hasFocus ?? false;