cake_wallet/lib/entities/transaction_description.dart
mkyq 5d741b183f
Add default values for hive fields for Node, UnspentCoinsInfo, Wallet… (#598)
* Add default values for hive fields for Node, UnspentCoinsInfo, WalletInfo, Order, Contact, TransactionDescription, Trade
2022-11-04 15:55:21 -04:00

23 lines
585 B
Dart

import 'package:hive/hive.dart';
part 'transaction_description.g.dart';
@HiveType(typeId: TransactionDescription.typeId)
class TransactionDescription extends HiveObject {
TransactionDescription({required this.id, this.recipientAddress, this.transactionNote});
static const typeId = 2;
static const boxName = 'TransactionDescriptions';
static const boxKey = 'transactionDescriptionsBoxKey';
@HiveField(0, defaultValue: '')
String id;
@HiveField(1)
String? recipientAddress;
@HiveField(2)
String? transactionNote;
String get note => transactionNote ?? '';
}