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