Navigationbaato constructor

Navigationbaato(
  1. {ValueSetter<RouteEvent> onRouteEvent}
)

Implementation

factory Navigationbaato({ValueSetter<RouteEvent> onRouteEvent}) {
  if (_instance == null) {
    final MethodChannel methodChannel =
    const MethodChannel('flutter_mapbox_navigation');
    final EventChannel eventChannel =
    const EventChannel('flutter_mapbox_navigation/events');
    _instance =
        Navigationbaato.private(methodChannel, eventChannel, onRouteEvent);
  }
  return _instance;
}