mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-02 12:14:09 +01:00
CAKE-329 | applied observable list to items in the unspent_coins_list_view_model.dart
This commit is contained in:
@@ -37,11 +37,12 @@ class UnspentCoinsListViewModel = UnspentCoinsListViewModelBase with _$UnspentCo
|
||||
|
||||
abstract class UnspentCoinsListViewModelBase with Store {
|
||||
@computed
|
||||
List<UnspentCoinsItem> get items => unspentCoinsMap.map((elem) =>
|
||||
UnspentCoinsItem(
|
||||
address: elem["address"] as String,
|
||||
amount: elem["amount"] as String,
|
||||
isFrozen: elem["isFrozen"] as bool,
|
||||
note: elem["note"] as String
|
||||
)).toList();
|
||||
ObservableList<UnspentCoinsItem> get items =>
|
||||
ObservableList.of(unspentCoinsMap.map((elem) =>
|
||||
UnspentCoinsItem(
|
||||
address: elem["address"] as String,
|
||||
amount: elem["amount"] as String,
|
||||
isFrozen: elem["isFrozen"] as bool,
|
||||
note: elem["note"] as String
|
||||
)));
|
||||
}
|
||||
Reference in New Issue
Block a user