publishableKey property
String
get
publishableKey
Retrieves the publishable API key.
Implementation
static String get publishableKey {
if (instance._publishableKey == null) {
throw const StripeConfigException('Publishable key is not set');
}
return instance._publishableKey!;
}
set
publishableKey
(String value)
Sets the publishable key that is used to identify the account on the Stripe platform.
Implementation
static set publishableKey(String value) {
if (value == instance._publishableKey) {
return;
}
instance._publishableKey = value;
instance.markNeedsSettings();
}