onFocus property

ValueChanged<bool>? onFocus
final

Callback invoked when the button's focus state changes.

Called with true when the button gains focus and false when it loses focus. Useful for accessibility features or coordinating focus with other widgets.

Implementation

final ValueChanged<bool>? onFocus;