instance property

The default instance of FlutterDrivingDirectionsPlatform to use.

Defaults to MethodChannelFlutterDrivingDirections.

Implementation

static FlutterDrivingDirectionsPlatform get instance => _instance;
set instance (FlutterDrivingDirectionsPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends FlutterDrivingDirectionsPlatform when they register themselves.

Implementation

static set instance(FlutterDrivingDirectionsPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}