onAttemptFailure property
Fired when an attempt to upload a chunk fails.
message
is the error message
chunkNumber
is the number of the current chunk being attempted,
and attemptsLeft
is the number of attempts left before stopping the upload
Implementation
final void Function(String message, int chunkNumber, int attemptsLeft)? onAttemptFailure;