emit method
Trigger eventName
event with or without the param
given.
Implementation
void emit(
Object? instance,
Enum eventName, [
dynamic param,
]) {
_notifiers
.lookup(ReactterNotifier(instance, eventName))
?.notifyListeners(param);
}