instance property
MapboxNavigationPlatform
get
instance
The default instance of MapboxNavigationPlatform to use.
Defaults to MethodChannelMapboxNavigation.
Implementation
static MapboxNavigationPlatform get instance => _instance;
set
instance
(MapboxNavigationPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends MapboxNavigationPlatform when they register themselves.
Implementation
static set instance(MapboxNavigationPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}