import 'package:stackwallet/models/isar/exchange_cache/currency.dart'; import 'package:stackwallet/models/isar/exchange_cache/pair.dart'; class SPAvailableCurrencies { final List floatingRateCurrencies = []; final List fixedRateCurrencies = []; final List floatingRatePairs = []; final List fixedRatePairs = []; void updateFloatingCurrencies(List newCurrencies) { floatingRateCurrencies.clear(); floatingRateCurrencies.addAll(newCurrencies); } void updateFixedCurrencies(List newCurrencies) { fixedRateCurrencies.clear(); fixedRateCurrencies.addAll(newCurrencies); } void updateFloatingPairs(List newPairs) { floatingRatePairs.clear(); floatingRatePairs.addAll(newPairs); } void updateFixedPairs(List newPairs) { fixedRatePairs.clear(); fixedRatePairs.addAll(newPairs); } }