RoadEventsEventInfoSessionEventInfoListener constructor

RoadEventsEventInfoSessionEventInfoListener({
  1. required void onEventInfoReceived(
    1. GeoObject event
    ),
  2. required void onEventInfoError(
    1. Error error
    ),
})

Implementation

factory RoadEventsEventInfoSessionEventInfoListener(
    {required void Function(mapkit_geo_object.GeoObject event)
        onEventInfoReceived,
    required void Function(runtime_error.Error error) onEventInfoError}) {
  return RoadEventsEventInfoSessionEventInfoListenerImpl(
    onEventInfoReceived: onEventInfoReceived,
    onEventInfoError: onEventInfoError,
  );
}