| 1 | import 'package:cw_core/hive_type_ids.dart'; |
| 2 | import 'package:hive/hive.dart'; |
| 3 | |
| 4 | part 'nano_account.part.dart'; |
| 5 | |
| 6 | // @HiveType(typeId: NanoAccount.typeId) |
| 7 | class NanoAccount extends HiveObject { |
| 8 | NanoAccount({required this.label, required this.id, this.balance, this.isSelected = false}); |
| 9 | |
| 10 | static const typeId = NANO_ACCOUNT_TYPE_ID; |
| 11 | |
| 12 | // @HiveField(0) |
| 13 | String label; |
| 14 | |
| 15 | // @HiveField(1) |
| 16 | final int id; |
| 17 | |
| 18 | // @HiveField(2) |
| 19 | bool isSelected; |
| 20 | |
| 21 | // @HiveField(3) |
| 22 | String? balance; |
| 23 | } |