remove isEditable parameter

This commit is contained in:
Serhii
2022-12-02 23:36:22 +02:00
parent a5cfc7fa61
commit 5f1e8e9d33
4 changed files with 13 additions and 16 deletions
@@ -46,16 +46,16 @@ abstract class ContactListViewModelBase with Store {
Future<void> delete(ContactRecord contact) async => contact.original.delete();
List<ContactRecord> getContacts(bool isEditable, CryptoCurrency? cur) {
if (!isEditable) {
List<ContactRecord> getContacts(CryptoCurrency? cur) {
if (cur != null) {
return contacts.where((element) => element.type == cur).toList();
}
return contacts;
}
List<WalletContact> getWallets(bool isEditable, CryptoCurrency? cur) {
if (!isEditable) {
List<WalletContact> getWallets(CryptoCurrency? cur) {
if (cur != null) {
return walletContacts.where((element) => element.type == cur).toList();
}