notify method

void notify(
  1. String eventName, [
  2. Map<String, dynamic>? arg
])

Implementation

void notify(String eventName, [Map<String, dynamic>? arg]) {
  var list = _messageQueue[eventName];
  if (list != null && list.isNotEmpty) {
    for (var i = 0; i < list.length; i++) {
      list[i](arg);
    }
  }
}