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