RealisticViewWarningListener constructor
- void onRealisticViewWarningUpdatedLambda()
This abstract class should be implemented in order to receive realistic view warnings.
A RealisticViewWarning will not be given until the previous warning of that type has been passed. For example, a route with RealisticViewWarning 120 meters and RealisticViewWarning 160 meters ahead, the first RealisticViewWarning.distanceToRealisticViewInMeters is 120 meters and the next RealisticViewWarning.distanceToRealisticViewInMeters is then 40 meters, since that is the distance between the first and second warnings.
Implementation
factory RealisticViewWarningListener(
void Function(RealisticViewWarning) onRealisticViewWarningUpdatedLambda,
) => RealisticViewWarningListener$Lambdas(
onRealisticViewWarningUpdatedLambda,
);