mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
18 lines
428 B
Dart
18 lines
428 B
Dart
import 'package:mobx/mobx.dart';
|
|
import 'package:cake_wallet/src/domain/common/node.dart';
|
|
|
|
part 'node_list_store.g.dart';
|
|
|
|
class NodeListStore = NodeListStoreBase with _$NodeListStore;
|
|
|
|
abstract class NodeListStoreBase with Store {
|
|
NodeListStoreBase() : nodes = ObservableList<Node>();
|
|
|
|
final ObservableList<Node> nodes;
|
|
|
|
void replaceValues(Iterable<Node> newNodes) {
|
|
nodes.clear();
|
|
nodes.addAll(newNodes);
|
|
}
|
|
}
|