Fixer Unofficial SDK
Get currency rates and convert currencies
Hecho en 🇵🇷 por Radamés J. Valentín Reyes
Get API key
Subscribe and get an API key from here
Import
import 'package:fixer_sdk/fixer_sdk.dart';
Examples
Get latest rates
ExchangeRates rates = await FixerSDK(
apikey: apikey,
).getLatestRates();
Convert currencies
ExchangeRates rates = await FixerSDK(
apikey: apikey,
).getLatestRates();
Currency converted = FixerSDK.equivalentIn(
fromCurrency: Currency(
amount: 15,
currencyCode: "USD",
),
toCurrency: "CAD",
rates: rates,
);
print("15 USD = ${converted.amount} CAD");