stopByKey static method

void stopByKey(
  1. dynamic key
)

Stop the watch function identified by key.

If key does not identify a watch function, this method does nothing.

Implementation

static void stopByKey(dynamic key) {
  if (key != null) {
    _CellWatchTable.maybeGetObserver(key)?.stop();
    _CellWatchTable.remove(key);
  }
}