close method

Future<void> close()

Implementation

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