totalBytes property

int get totalBytes

The size of the upload in bytes; -1 while it is unknown (a stream given to Reference.startStreamUpload without a length, until the task has read its end). It changes to the size without an event on progress; the next event carries it.

Implementation

int get totalBytes => _total ?? -1;