공개페이지
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user