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