cake_wallet/cw_core/lib/nano_account.dart

24 lines
467 B
Dart
Raw Normal View History

2023-08-15 19:05:38 +00:00
import 'package:cw_core/hive_type_ids.dart';
2023-08-10 22:34:20 +00:00
import 'package:hive/hive.dart';
part 'nano_account.g.dart';
@HiveType(typeId: NanoAccount.typeId)
class NanoAccount extends HiveObject {
NanoAccount({required this.label, required this.id, this.balance, this.isSelected = false});
2023-08-15 19:05:38 +00:00
static const typeId = NANO_ACCOUNT_TYPE_ID;
2023-08-10 22:34:20 +00:00
@HiveField(0)
String label;
@HiveField(1)
final int id;
@HiveField(2)
bool isSelected;
@HiveField(3)
String? balance;
}