Files
2025-10-29 00:25:03 +09:00

20 lines
530 B
Dart

// Intentionally minimal; no platform imports to keep tests stable
// Minimal web storage wrapper. On web uses window.localStorage; otherwise in-memory.
// Avoids flutter_secure_storage_web to keep WebAssembly warnings out.
class WebStorage {
static final Map<String, String> _memory = <String, String>{};
static String? getItem(String key) {
return _memory[key];
}
static void setItem(String key, String value) {
_memory[key] = value;
}
static void removeItem(String key) {
_memory.remove(key);
}
}