one<T, P> method
Puts on to listen eventName
event only once.
When the event is emitted(by emit), the callback
is called
and after removes event.
Implementation
void one<T, P>(
Object? instance,
Enum eventName,
CallbackEvent<T, P> callback,
) {
var notifier = ReactterNotifier(instance, eventName);
notifier = _notifiers.lookup(notifier) ?? notifier;
notifier.addListener(callback, true);
_notifiers.add(notifier);
}