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