throwIfProviderIsNotDefined method
Verifies that the selected provider has been previously configured or throws otherwise.
Implementation
Future throwIfProviderIsNotDefined(PayProvider provider) async {
await _assetInitializationFuture;
if (!_configurations!.containsKey(provider)) {
throw ProviderNotConfiguredException(
'No configuration has been provided for the provider ($provider)');
}
}