currencies method

Future<Iterable<CurrencyInfo>> currencies()

Get currencies list. See exchangeRate

Implementation

Future<Iterable<CurrencyInfo>> currencies() async {
  if (_currencies != null) return _currencies!;
  final response = await dio.get('/cube/currencies');
  return _currencies =
      (response.data as List).map((e) => CurrencyInfo.fromJson(e));
}