dev
dart 38 lines 970 Bytes
Raw
1 // import 'package:hive/hive.dart';
2 // import 'package:mobx/mobx.dart';
3 // import 'package:cake_wallet/entities/contact.dart';
4 // import 'package:cw_core/crypto_currency.dart';
5
6 // part 'contact_model.g.dart';
7
8 // class ContactModel = ContactModelBase with _$ContactModel;
9
10 // abstract class ContactModelBase with Store {
11 // ContactModelBase(this._contacts, {Contact contact}) : _contact = contact {
12 // name = _contact?.name;
13 // address = _contact?.address;
14 // currency = _contact?.type;
15
16 // _contacts.watch(key: contact.key).listen((event) {
17
18 // });
19 // }
20
21 // @observable
22 // String name;
23
24 // @observable
25 // String address;
26
27 // @observable
28 // CryptoCurrency currency;
29
30 // // @computed
31 // // bool get isReady =>
32 // // (name?.isNotEmpty ?? false) &&
33 // // (currency?.toString()?.isNotEmpty ?? false) &&
34 // // (address?.isNotEmpty ?? false);
35
36 // final Box<ContactBase> _contacts;
37 // final Contact _contact;
38 // }