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