instance property

PayorcSdk get instance

Returns the current SDK instance.

Throws StateError if init has not been called yet.

Implementation

static PayorcSdk get instance {
  final sdk = _instance;
  if (sdk == null) {
    throw StateError(
      'PayorcSdk has not been initialized. Call PayorcSdk.init() first.',
    );
  }
  return sdk;
}