MapNavigationViewController constructor

MapNavigationViewController(
  1. int id,
  2. ValueSetter<RouteEvent>? eventNotifier
)

Implementation

MapNavigationViewController(int id, ValueSetter<RouteEvent>? eventNotifier) {
  _methodChannel = MethodChannel('navigation_plugin/$id');
  _methodChannel.setMethodCallHandler(_handleMethod);

  _eventChannel = EventChannel('navigation_plugin/$id/events');
  _routeEventNotifier = eventNotifier;
}