onStateChange property

ValueChanged<Set<WidgetState>>? onStateChange
final

Handler called when there are any changes to a tappable's WidgetStates.

It is called before the more specific callbacks, i.e., onFocusChange.

{@macro forui.foundation.doc_templates.WidgetStates.selectable}

Consider using the more specific callbacks if you only need to listen to a specific state change:

Implementation

final ValueChanged<Set<WidgetState>>? onStateChange;