mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-24 04:29:28 +00:00
38 lines
970 B
Dart
38 lines
970 B
Dart
// import 'package:hive/hive.dart';
|
|
// import 'package:mobx/mobx.dart';
|
|
// import 'package:cake_wallet/entities/contact.dart';
|
|
// import 'package:cw_core/crypto_currency.dart';
|
|
|
|
// part 'contact_model.g.dart';
|
|
|
|
// class ContactModel = ContactModelBase with _$ContactModel;
|
|
|
|
// abstract class ContactModelBase with Store {
|
|
// ContactModelBase(this._contacts, {Contact contact}) : _contact = contact {
|
|
// name = _contact?.name;
|
|
// address = _contact?.address;
|
|
// currency = _contact?.type;
|
|
|
|
// _contacts.watch(key: contact.key).listen((event) {
|
|
|
|
// });
|
|
// }
|
|
|
|
// @observable
|
|
// String name;
|
|
|
|
// @observable
|
|
// String address;
|
|
|
|
// @observable
|
|
// CryptoCurrency currency;
|
|
|
|
// // @computed
|
|
// // bool get isReady =>
|
|
// // (name?.isNotEmpty ?? false) &&
|
|
// // (currency?.toString()?.isNotEmpty ?? false) &&
|
|
// // (address?.isNotEmpty ?? false);
|
|
|
|
// final Box<ContactBase> _contacts;
|
|
// final Contact _contact;
|
|
// }
|