mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
24 lines
467 B
Dart
24 lines
467 B
Dart
|
import 'package:cw_core/hive_type_ids.dart';
|
||
|
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});
|
||
|
|
||
|
static const typeId = NANO_ACCOUNT_TYPE_ID;
|
||
|
|
||
|
@HiveField(0)
|
||
|
String label;
|
||
|
|
||
|
@HiveField(1)
|
||
|
final int id;
|
||
|
|
||
|
@HiveField(2)
|
||
|
bool isSelected;
|
||
|
|
||
|
@HiveField(3)
|
||
|
String? balance;
|
||
|
}
|