onPressed property
Callback fired when the button is pressed with loading state support.
Provides TButtonPressOptions to control the loading state.
Call options.stopLoading() when the async operation completes.
Implementation
final Function(TButtonPressOptions)? onPressed;