setAll static method
Saves many values and waits until they are on disk. await ULocalStorage.setAll({"a": 1, "b": 2})
Implementation
static Future<void> setAll(Map<String, Object?> entries, {Duration? expireTime}) async {
for (final MapEntry<String, Object?> e in entries.entries) {
unawaited(_storeFor(e.key).set(e.key, e.value, ttl: expireTime));
}
await UStorage.flushAll();
}