off<T, P> method
Removes the callback
of eventName
.
Implementation
void off<T, P>(
Object? instance,
Enum eventName,
CallbackEvent<T, P> callback,
) {
final notifier = _getEventNotifier(instance, eventName);
if (notifier == null) return;
notifier.removeListener(callback);
_offEventNotifier(notifier);
}