2020-09-10 14:51:59 +00:00
|
|
|
// import 'package:hive/hive.dart';
|
|
|
|
// import 'package:mobx/mobx.dart';
|
2020-09-21 11:50:26 +00:00
|
|
|
// import 'package:cake_wallet/entities/contact.dart';
|
2021-12-24 12:37:24 +00:00
|
|
|
// import 'package:cw_core/crypto_currency.dart';
|
2020-09-10 14:51:59 +00:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
// }
|