TollStopWarningListener constructor
- @Deprecated("Will be removed in v4.29.0. Use the `WarningListener` implementation instead.")
- void onTollStopWarningLambda()
This abstract class should be implemented in order to receive information on the upcoming toll booth structure.
The warner might also warn about gates/checkpoints for vignette, border checkpoints and similar structures on the street.
Note: A TollStop will not be given until the previous warning of that type has been passed.
For example, a route with TollStop 120 meters and TollStop 160 meters ahead,
the first TollStop.distance_to_toll_stop_in_meters is 120 meters
and the next TollStop.distance_to_toll_stop_in_meters is then 40 meters,
since that is the distance between the first and second warnings.
Implementation
@Deprecated("Will be removed in v4.29.0. Use the `WarningListener` implementation instead.")
factory TollStopWarningListener(
void Function(TollStop) onTollStopWarningLambda,
) => TollStopWarningListener$Lambdas(
onTollStopWarningLambda,
);