instance property

XPathProviderPlatform get instance

The default instance of XPathProviderPlatform to use.

Defaults to MethodChannelXPathProvider.

Implementation

static XPathProviderPlatform get instance => _instance;
set instance (XPathProviderPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends XPathProviderPlatform when they register themselves.

Implementation

static set instance(XPathProviderPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}