ProviderQuotaService constructor
ProviderQuotaService({})
Implementation
ProviderQuotaService({
Map<String, QuotaAdapter> adapters = const {},
Set<String> unmeteredProviders = const {},
DateTime Function()? now,
this.ttl = const Duration(minutes: 15),
this.fetchTimeout = const Duration(seconds: 5),
}) : _adapters = Map.of(adapters),
_unmetered = Set.of(unmeteredProviders),
_now = now ?? _defaultNow;