off method

void off(
  1. String event, [
  2. void handler(
    1. dynamic error
    )?
])

Removes listener(s) for event — all of them, or just handler if one was given (see socket_io_client's Socket.off).

Implementation

void off(String event, [void Function(dynamic data)? handler]) => _socket?.off(event, handler);