instance property

ApexDartPlatform get instance

The default instance of ApexDartPlatform to use.

Defaults to MethodChannelApexDart.

Implementation

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

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

Implementation

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