dev
dart 21 lines 513 Bytes
Raw
1 import 'package:cw_core/hive_type_ids.dart';
2 import 'package:hive/hive.dart';
3
4 part 'address_info.part.dart';
5
6 // @HiveType(typeId: ADDRESS_INFO_TYPE_ID)
7 class AddressInfo extends HiveObject {
8 AddressInfo({required this.address, this.accountIndex, required this.label});
9
10 static const typeId = ADDRESS_INFO_TYPE_ID;
11 static const boxName = 'AddressInfo';
12
13 // @HiveField(0)
14 int? accountIndex;
15
16 // @HiveField(1, defaultValue: '')
17 String address;
18
19 // @HiveField(2, defaultValue: '')
20 String label;
21 }