instance property

TicketLibPlatform get instance

The default instance of TicketLibPlatform to use.

Defaults to MethodChannelTicketLib.

Implementation

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

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

Implementation

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