You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import 'package:flutter/foundation.dart';
|
|
|
|
import 'package:mobx/mobx.dart';
|
|
|
|
import 'package:cake_wallet/utils/mobx.dart';
|
|
|
|
|
|
|
|
// part 'node_list_view_model.g.dart';
|
|
|
|
//
|
|
|
|
// class NodeListViewModel = NodeListViewModelBase with _$NodeListViewModel;
|
|
|
|
|
|
|
|
class ItemCell<Item> with Keyable {
|
|
|
|
ItemCell(this.value, {this.isSelectedBuilder, @required dynamic key}) {
|
|
|
|
keyIndex = key;
|
|
|
|
}
|
|
|
|
|
|
|
|
final Item value;
|
|
|
|
|
|
|
|
bool get isSelected => isSelectedBuilder(value);
|
|
|
|
bool Function(Item item) isSelectedBuilder;
|
|
|
|
}
|