instance property

Stripe? instance

Access the singleton instance of Stripe. 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 StripeApi without initialization");
  }
  return _instance;
}