getAllItemsWithNamespace method
Implementation
Map<String, String> getAllItemsWithNamespace(String namespace) {
final items = <String, String>{};
for (var key in window.localStorage.keys) {
if (key.startsWith(namespace)) {
final value = window.localStorage[key];
final namespacedKey = key.substring(namespace.length);
items[namespacedKey] = value ?? "";
}
}
return items;
}