close method

Future<void> close()

Close the connection and controller.

Implementation

Future<void> close() async {
  try {
    await _sub?.cancel();
  } on Object {}

  await _controller.close();
}