onEvent property

void Function(Object event)? onEvent
final

Optional callback for every streaming event (for live UI rendering while the agent works).

Implementation

final void Function(Object event)? onEvent;