emitDownloadProgress method

void emitDownloadProgress(
  1. int bytesDownloaded, {
  2. int bytesTotal = 0,
})

Download progress. bytesTotal of 0 models a host that reports no total, which is what Android does.

Implementation

void emitDownloadProgress(int bytesDownloaded, {int bytesTotal = 0}) => emit(
  LocalAiDownloadProgressEvent(
    bytesDownloaded: bytesDownloaded,
    bytesTotal: bytesTotal,
  ),
);