import 'package:cw_core/wallet_info.dart'; abstract class WalletAddresses { WalletAddresses(this.walletInfo) : addressesMap = {}; final WalletInfo walletInfo; String get address; set address(String address); Map addressesMap; Future init(); Future updateAddressesInBox(); Future saveAddressesInBox() async { try { walletInfo.address = address; walletInfo.addresses = addressesMap; if (walletInfo.isInBox) { await walletInfo.save(); } } catch (e) { print(e.toString()); } } }