remove static method

void remove(
  1. dynamic target
)

注意: 当有多个地方使用同一个ValueNotifier时,注意回收的时机。

Implementation

static void remove(dynamic target) {
  if (_listenerMap.containsKey(target)) {
    _listenerMap.remove(target);
  }

  if (_listener.containsKey(target)) {
    _listener.remove(target);
  }
}