disposeSignal method

void disposeSignal(
  1. int id
)

Dispose and remove signal

Implementation

void disposeSignal(int id) {
  final s = _signals.remove(id);
  if (s == null) return;
  s.target.dispose();
  s.listener?.cleanup();
}