emit method

void emit(
  1. int done,
  2. int total
)

Implementation

void emit(int done, int total) {
  if (total == 0) return;
  _controller.add(done / total);
}