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