Files
flutter_server_box/lib/data/store/docker.dart
2023-03-27 15:09:19 +08:00

16 lines
324 B
Dart

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