CustomElementEventHandler<T> typedef
CustomElementEventHandler<T> =
void Function(CustomElementEvent<T> event)
Handler callback signature for custom element events carrying a deserialized detail payload.
Used in the events map of customElement to listen to custom DOM events emitted by Web Components.
final CustomElementEventHandler<dynamic> onSelection = (event) {
print('Selected: ${event.detail}');
};
Implementation
typedef CustomElementEventHandler<T> = void Function(
CustomElementEvent<T> event);