GeoObjectSessionGeoObjectListener constructor

GeoObjectSessionGeoObjectListener({
  1. required void onGeoObjectResult(
    1. GeoObject obj
    ),
  2. required void onGeoObjectError(
    1. Error error
    ),
})

Implementation

factory GeoObjectSessionGeoObjectListener(
    {required void Function(mapkit_geo_object.GeoObject obj)
        onGeoObjectResult,
    required void Function(runtime_error.Error error) onGeoObjectError}) {
  return GeoObjectSessionGeoObjectListenerImpl(
    onGeoObjectResult: onGeoObjectResult,
    onGeoObjectError: onGeoObjectError,
  );
}