close method

Future close()

Closes the underlying StreamChannel.

Implementation

Future close() async {
  await channel.sink.close();
  _markClosed();
}