instance property

CrossViewPlatform get instance

The default instance of CrossViewPlatform to use.

Defaults to MethodChannelCrossView.

Implementation

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

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

Implementation

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