mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +00:00
18 lines
497 B
Dart
18 lines
497 B
Dart
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;
|
|
}
|