onStateChange property
Triggers every time the button changes state.
The possible emitted values are:
FDBState.disabled- the button is disabledFDBState.ready- the button is ready to be pressedFDBState.running- the button is pressed and theonPressedfuture is runningFDBState.abort- the button is pressed and theonPressedfuture is runningFDBState.success- theonPressedfuture has completed with a valueFDBState.error- theonPressedfuture has completed with an error
Implementation
final void Function(FDBState)? onStateChange;