instance property
GoogleSecretManager
instance
This method is used to get the GoogleSecretManager instance.
Implementation
static GoogleSecretManager get instance {
if (_instance == null) {
throw Exception(
'GoogleSecretManager is not initialized. You have to call GoogleSecretManagerInitializer.initWithServiceAccount(...) first.',
);
}
return _instance!;
}
This method is used to set the GoogleSecretManager instance.
Implementation
static set instance(GoogleSecretManager? instance) {
_instance = instance;
}