emitDownloadProgress method
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,
),
);