instance property

LokotroPay get instance

The active SDK instance.

Throws StateError if init has not been called yet.

Implementation

static LokotroPay get instance {
  final i = _instance;
  if (i == null) {
    throw StateError(
      'LokotroPay has not been initialised. '
      'Call LokotroPay.init(LokotroPayConfig(...)) at app startup.',
    );
  }
  return i;
}