mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
16 lines
309 B
Dart
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>();
|
|
}
|
|
}
|