instance property

ImchatPlatform get instance

The default instance of ImchatPlatform to use.

Defaults to MethodChannelImchat.

Implementation

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

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

Implementation

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