removeListener method

void removeListener(
  1. FutureOr<void> callback(
    1. String? userId
    )
)

Removes a callback that has already been registered.

Implementation

void removeListener(FutureOr<void> Function(String? userId) callback) {
  _callbacks.remove(callback);
}