opt.: sync immediately after changes (#577)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-09-14 17:08:51 +08:00
committed by GitHub
parent d611fdcd50
commit 90b88ed795
17 changed files with 64 additions and 124 deletions

View File

@@ -3,7 +3,9 @@ import 'package:fl_lib/fl_lib.dart';
import 'package:server_box/data/model/server/private_key_info.dart';
class PrivateKeyStore extends PersistentStore {
PrivateKeyStore() : super('key');
PrivateKeyStore._() : super('key');
static final instance = PrivateKeyStore._();
void put(PrivateKeyInfo info) {
box.put(info.id, info);