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