onPressedAsync property
Asynchronous callback when button is pressed. The button will show loading state while this is executing. Either onPressed or onPressedAsync must be provided.
Implementation
final Future<void> Function()? onPressedAsync;
Asynchronous callback when button is pressed. The button will show loading state while this is executing. Either onPressed or onPressedAsync must be provided.
final Future<void> Function()? onPressedAsync;