instance property
PointerInterceptorPlatform
instance
The default instance of PointerInterceptorPlatform to use.
Defaults to DefaultPointerInterceptor
, which does not do anything
Implementation
static PointerInterceptorPlatform get instance => _instance;
Implementation
static set instance(PointerInterceptorPlatform? instance) {
if (instance == null) {
throw AssertionError(
'Platform interfaces can only be set to a non-null instance');
}
PlatformInterface.verify(instance, _token);
_instance = instance;
}