isFocused property

bool isFocused
getter/setter pair

Indicates whether this component instance currently has input focus.

When true, the component is the primary recipient of keyboard input and may have visual focus indicators.

Implementation

bool isFocused = false;