onWorkflowEvent static method

StreamSubscription<GeofenceWorkflowEvent> onWorkflowEvent(
  1. void callback(
    1. GeofenceWorkflowEvent event
    ), {
  2. Function? onError,
})

Implementation

static StreamSubscription<GeofenceWorkflowEvent> onWorkflowEvent(
  void Function(GeofenceWorkflowEvent event) callback, {
  Function? onError,
}) {
  return workflowEvents.listen(callback, onError: onError);
}