instance property

GliaWidgetsSdkPlatform get instance

The default instance of GliaWidgetsSdkPlatform to use.

Defaults to GliaWidgetsSdkMethodChannel.

Implementation

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

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

Implementation

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