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