instance property

NativeContactsPlatform get instance

The default instance of NativeContactsPlatform to use.

Defaults to MethodChannelNativeContacts.

Implementation

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

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

Implementation

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