instance property
OfferwallPlatform
get
instance
The default instance of OfferwallPlatform to use.
Defaults to MethodChannelOfferwall.
Implementation
static OfferwallPlatform get instance => _instance;
set
instance
(OfferwallPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends OfferwallPlatform when they register themselves.
This setter is used to override the default instance of the platform interface.
Implementation
static set instance(OfferwallPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}