close method

  1. @override
dynamic close()
override

Flushes then closes this instance.

Implementation

@override
close() {
  flush();

  try {
    _closed = true;
    _io.closeSync();
  } catch (_) {}
}