2020-09-07 15:13:39 +00:00
|
|
|
import 'package:flutter/foundation.dart';
|
2020-09-26 19:17:31 +00:00
|
|
|
import 'package:mobx/mobx.dart';
|
2020-09-07 15:13:39 +00:00
|
|
|
import 'package:cake_wallet/utils/mobx.dart';
|
|
|
|
|
2020-09-26 19:17:31 +00:00
|
|
|
// part 'node_list_view_model.g.dart';
|
|
|
|
//
|
|
|
|
// class NodeListViewModel = NodeListViewModelBase with _$NodeListViewModel;
|
|
|
|
|
2020-09-07 15:13:39 +00:00
|
|
|
class ItemCell<Item> with Keyable {
|
2020-09-26 19:17:31 +00:00
|
|
|
ItemCell(this.value, {this.isSelectedBuilder, @required dynamic key}) {
|
2020-09-07 15:13:39 +00:00
|
|
|
keyIndex = key;
|
|
|
|
}
|
|
|
|
|
|
|
|
final Item value;
|
2020-09-26 19:17:31 +00:00
|
|
|
|
|
|
|
bool get isSelected => isSelectedBuilder(value);
|
|
|
|
bool Function(Item item) isSelectedBuilder;
|
2020-09-07 15:13:39 +00:00
|
|
|
}
|