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