getWalletsForUnit method

List<Wallet> getWalletsForUnit(
  1. String unit
)

Get wallets that support a specific currency

Implementation

List<Wallet> getWalletsForUnit(String unit) {
  return _wallets
      .where((wallet) => wallet.supportedUnits.any((u) => u == unit))
      .toList();
}