instance property

Stripe get instance

Access the instance of Stripe by calling Stripe.instance. Throws an Exception if Stripe.init hasn't been called previously.

Implementation

static Stripe get instance {
  if (_instance == null) {
    throw Exception('Attempted to get singleton instance of Stripe without initialization');
  }
  return _instance!;
}