notify static method

void notify(
  1. String key
)

Implementation

static void notify(String key) {
  if (subs[key] == null) return;

  for (Function f in subs[key]) {
    f();
  }
}