onError property
final
Called when submission fails, with the thrown error as argument.
Implementation
final void Function(Object error)? onError;
Called when submission fails, with the thrown error as argument.
final void Function(Object error)? onError;