Files
flutter_server_box/lib/data/store/docker.dart
lollipopkit 4788f1dddc #116 fix
2023-08-10 18:05:24 +08:00

16 lines
309 B
Dart

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