instance property
CobrowseIO
get
instance
The default instance of CobrowseIO to use.
Defaults to MethodChannelCobrowseIO.
Implementation
static CobrowseIO get instance => _instance ??= MethodChannelCobrowseIO();
Platform-specific implementations should set this with their own platform-specific class that extends CobrowseIO when they register themselves. Intended for tests only.
Implementation
@visibleForTesting
static set instance(CobrowseIO instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}