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