使用 Hive Object

This commit is contained in:
Junyuan Feng
2022-11-05 23:08:56 +08:00
parent c036b78708
commit 398c49bb99
20 changed files with 504 additions and 102 deletions

View File

@@ -1,8 +1,13 @@
import 'dart:convert';
import 'package:hive_flutter/hive_flutter.dart';
part 'private_key_info.g.dart';
///
/// Code generated by jsonToDartModel https://ashamp.github.io/jsonToDartModel/
///
@HiveType(typeId: 1)
class PrivateKeyInfo {
/*
{
@@ -12,8 +17,11 @@ class PrivateKeyInfo {
}
*/
@HiveField(0)
late String id;
@HiveField(1)
late String privateKey;
@HiveField(2)
late String password;
PrivateKeyInfo(