instance property
DollarStarxpandPlatform
get
instance
The default instance of DollarStarxpandPlatform to use.
This defaults to MethodChannelDollarStarxpand, which uses method channels for communication with the native platform.
Implementation
static DollarStarxpandPlatform get instance => _instance;
set
instance
(DollarStarxpandPlatform instance)
Sets the instance of DollarStarxpandPlatform to use.
Platform-specific implementations should call this method to register themselves as the default instance by providing a class that extends DollarStarxpandPlatform.
Throws an AssertionError if the provided instance does not match the required token.
Implementation
static set instance(DollarStarxpandPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}