removeObserver method Null safety

void removeObserver(
  1. void o(
    1. T
    )
)

Implementation

void removeObserver(void Function(T) o) {
  bool ok = _observers.remove(o);
  assert(ok);
}