instance property
SopCometchatPlatform
get
instance
The default instance of SopCometchatPlatform to use.
Defaults to MethodChannelSopCometchat.
Implementation
static SopCometchatPlatform get instance => _instance;
set
instance
(SopCometchatPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends SopCometchatPlatform when they register themselves.
Implementation
static set instance(SopCometchatPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}