dispatchCustomEvent abstract method

Future<void> dispatchCustomEvent(
  1. String eventName, {
  2. Object? detail,
})

Dispatches the eventName custom event on this element.

If provided, detail is copied into the event.

Implementation

Future<void> dispatchCustomEvent(String eventName, {Object? detail});