progress static method

void progress(
  1. String s,
  2. dynamic received,
  3. dynamic total
)

Implementation

static void progress(String s, received, total) {
  s.write(inGray);
  " $received".write(inYellow);
  " $total".write(inWhite);
  print("");
}