mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 09:57:46 +00:00
18 lines
535 B
Dart
18 lines
535 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:mobx/mobx.dart';
|
|
import 'package:cake_wallet/utils/mobx.dart';
|
|
import 'package:cw_core/keyable.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;
|
|
}
|