BetterRoutePromptController constructor

BetterRoutePromptController({
  1. required NavigationManager navigationManager,
  2. required void onBetterRoutePrompted(
    1. BetterRouteInfo
    ),
  3. required void onBetterRouteRejected(),
  4. required void onBetterRouteTimedOut(),
  5. required void onBetterRouteAccepted(
    1. BetterRouteInfo
    ),
})

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();
}