onError property

FutureOr<void> Function()? onError
final

Called if onPressed throws. If null, the error is rethrown once the loading state has been cleared.

Implementation

final FutureOr<void> Function()? onError;