onEvent property

void Function(String eventName, dynamic payload)? onEvent
final

Event callback invoked when the native view emits a platform event across the method channel.

Implementation

final void Function(String eventName, dynamic payload)? onEvent;