removeListener method

void removeListener(
  1. MiniSubscription<T> element
)

Implementation

void removeListener(MiniSubscription<T> element) {
  var currentNode = _head;
  while (currentNode != null) {
    if (currentNode.data == element) {
      _removeNode(currentNode);
      break;
    }
    currentNode = currentNode.next;
  }
}