unRegisterListen<T extends Object> method

void unRegisterListen<T extends Object>({
  1. String? mark,
})

Remove the specified listener object.

mark -- Query the unique identifier of the monitored object.

Implementation

void unRegisterListen<T extends Object>({
  String? mark,
}) {
  final String key = keyGet<T>(mark);
  final Iterable keys = _recordListenPool.keys;
  if (keys.contains(key)) {
    final StreamController<T>? gstreamController = instanceListenGet(_recordListenPool, key);
    gstreamController?.close();
    _recordListenPool.remove(key);
  }
}