dispatchObjectDisposed method
- required Object object,
Create ObjectDisposed and invoke dispatchObjectEvent if there are listeners.
This method is more efficient than dispatchObjectEvent if the event object is not created yet.
Implementation
void dispatchObjectDisposed({required Object object}) {
if (!hasListeners) {
return;
}
dispatchObjectEvent(ObjectDisposed(object: object));
}