NativeMemoryStorage class final
An in-memory implementation of NativeStorage and NativeSecureStorage.
- Implemented types
Constructors
- NativeMemoryStorage.new({String? namespace, String? scope})
-
factory
Properties
-
allKeys
→ List<
String> -
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isolated → IsolatedNativeStorage
-
A NativeStorage that performs storage operations asynchronously on a
separate isolate.
no setteroverride
- namespace → String
-
The main identifier all values are stored under.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → String?
-
An optional tag for separating values for different parts of your app.
final
- secure → NativeSecureStorage
-
Provides platform-specific secure storage, typically using the OS's secure
keychain or keystore.
no setteroverride
Methods
-
clear(
) → void -
Clears all values synchronously for the configured
namespace
andscope
from storage.override -
close(
) → void -
Frees up any resources associated with this storage instance.
inherited
-
closeInternal(
) → void -
delete(
String key) → String? -
Deletes a value synchronously from storage.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String key) → String? -
Reads a value synchronously from storage.
override
-
scoped(
String scope) → NativeMemoryStorage -
Creates a new NativeStorage instance with the same configuration as
this instance, but with the provided
scope
.override -
toString(
) → String -
A string representation of this object.
inherited
-
write(
String key, String value) → String -
Writes a value synchronously to storage.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
instances
→ Map<
(String, String?), NativeMemoryStorage> -
final