onAttempt property
Fired immediately before a chunk upload is attempted.
chunkNumber
is the number of the current chunk being attempted,
and chunkSize is the size (in bytes) of that chunk.
Implementation
final void Function(int chunkNumber, int chunkSize)? onAttempt;