onError property
Fired when a chunk has reached the max number of retries or the response code is fatal and implies that retries should not be attempted.
Implementation
final void Function(String message, int chunk, int attempts)? onError;
Fired when a chunk has reached the max number of retries or the response code is fatal and implies that retries should not be attempted.
final void Function(String message, int chunk, int attempts)? onError;