emit method

void emit(
  1. ModelDownloadUpdate update
)

Sends update to the listeners of updates.

Implementation

void emit(ModelDownloadUpdate update) {
  if (update.state == ModelDownloadState.failed) kept.add(update.id);
  _controller.add(update);
}