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