This commit is contained in:
lollipopkit
2023-08-10 18:05:24 +08:00
parent cf1c9643b9
commit 4788f1dddc
8 changed files with 56 additions and 47 deletions

View File

@@ -1,15 +1,15 @@
import 'package:toolbox/core/persistant_store.dart';
class DockerStore extends PersistentStore {
String? getDockerHost(String id) {
String? fetch(String id) {
return box.get(id);
}
void setDockerHost(String id, String host) {
void put(String id, String host) {
box.put(id, host);
}
Map<String, String> fetch() {
Map<String, String> fetchAll() {
return box.toMap().cast<String, String>();
}
}