close method

Future<void> close()

Close a connection to a channel.

Implementation

Future<void> close() async {
  if (_channel != null) {
    await _channel!.sink.close();
  }
}