close method

Future<void> close({
  1. bool flush = true,
})

Flushes pending writes.

Implementation

Future<void> close({bool flush = true}) async {
  if (flush) await this.flush();
}