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 {
  _sink.write('\n]\n');
  await _sink.flush();
  await _sink.close();
}