instance property

EpayPlatformInterface get instance

The default instance of EpayPlatformInterface to use.

By default, this will return the MethodChannelEpay implementation.

Implementation

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

Sets the instance of EpayPlatformInterface to a platform-specific implementation.

This method allows platform-specific implementations to register themselves, overriding the default instance (e.g., MethodChannelEpay).

Implementation

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