EventCallback typedef
EventCallback =
void Function(Object? data)
The callback function to receive event notification.
data - Object event data emitted by the publisher.
Implementation
typedef EventCallback = void Function(Object? data);