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