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