closeSocket static method

Future<void> closeSocket(
  1. SecureSocket? socket
)

Implementation

static Future<void> closeSocket(SecureSocket? socket) async {
  await socket?.flush();
  await socket?.close();
}