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