instance property

ChatclientPlatform get instance

The default instance of ChatclientPlatform to use.

Defaults to MethodChannelChatclient.

Implementation

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

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

Implementation

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