instance property
InAppWebViewPlatform?
get
instance
The instance of InAppWebViewPlatform to use.
Implementation
static InAppWebViewPlatform? get instance => _instance;
set
instance
(InAppWebViewPlatform? instance)
Platform-specific plugins should set this with their own platform-specific class that extends InAppWebViewPlatform when they register themselves.
Implementation
static set instance(InAppWebViewPlatform? instance) {
if (instance == null) {
throw AssertionError(
'Platform interfaces can only be set to a non-null instance');
}
PlatformInterface.verify(instance, _token);
_instance = instance;
}