close method

  1. @override
Future<void> close()
override

Close the sink and ensure all pending trace data is flushed to the target.

Implementation

@override
Future<void> close() async {
  _ios.write('\n]\n');
  await _ios.flush();
  await _ios.close();
}