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