instance property

VnPaymentApi get instance

Get the singleton instance of VnPaymentApi Throws an exception if not initialized

Implementation

static VnPaymentApi get instance {
  if (_instance == null) {
    throw Exception('VnPaymentApi not initialized. Call VnPaymentApi.init() first.');
  }
  return _instance!;
}