instance property

XenditFlutterPlatform get instance

The default instance of XenditFlutterPlatform to use.

Defaults to MethodChannelXenditFlutter.

Implementation

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

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

Implementation

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