flush method

void flush([
  1. void print(
    1. String
    )?
])

Implementation

void flush([void Function(String)? print]) {
  final writeln = print ?? info;

  _queue
    ..forEach(writeln)
    ..clear();
}