FirestoreCurrencyRateSource class

Firestore-backed CurrencyRateSource that reads exchange rates from a Firestore collection and falls back to the HTTP API on failure.

Expects Firestore structure:

exchange_rates/{base} → { rates: { EUR: 0.92, GBP: 0.79, ... } }
Implemented types

Constructors

FirestoreCurrencyRateSource({FirebaseFirestore? firestore, CurrencyRateSource? fallback})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchRates(String base) Future<Map<String, double>>
Fetches exchange rates for the given base currency.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited