onError property

(void Function(String message, int chunk, int attempts)?) onError
final

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;