remaining property

int? get remaining

Bytes left to download, or null if the total size is unknown.

Implementation

int? get remaining => total == null ? null : total! - received;