onPressedAsync property

Future<void> Function()? onPressedAsync
final

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;