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