BetterRoutePromptController constructor
BetterRoutePromptController({
- required void onBetterRoutePrompted(),
- required void onBetterRouteRejected(),
- required void onBetterRouteTimedOut(),
- required void onBetterRouteAccepted(),
Implementation
BetterRoutePromptController({
required this.navigationManager,
required void Function(sdk.BetterRouteInfo) onBetterRoutePrompted,
required void Function() onBetterRouteRejected,
required void Function() onBetterRouteTimedOut,
required void Function(sdk.BetterRouteInfo) onBetterRouteAccepted,
}) : _onBetterRouteTimedOut = onBetterRouteTimedOut,
_onBetterRouteRejected = onBetterRouteRejected,
_onBetterRouteAccepted = onBetterRouteAccepted,
_onBetterRoutePrompted = onBetterRoutePrompted {
_init();
}