onError property

void Function(Object error)? onError
final

A callback that is called when the request fails.

Implementation

final void Function(Object error)? onError;