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