onError property

void Function(Object error)? onError
final

Called when submission fails, with the thrown error as argument.

Implementation

final void Function(Object error)? onError;