IsolatedNativeStorage class abstract interface

A NativeStorage that performs storage operations asynchronously on a separate isolate.

On Web platforms, this simply returns an asynchronous wrapper over the same non-isolated storage.

Constructors

IsolatedNativeStorage({required NativeStorageFactory<NativeStorage> factory, String? namespace, String? scope})
A NativeStorage that performs storage operations asynchronously on a separate isolate.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() Future<void>
Clears all values asynchronously for the configured namespace and scope from storage.
close({bool force = false}) Future<void>
Frees up any resources associated with this storage instance.
delete(String key) Future<String?>
Deletes a value asynchronously from storage on a background thread.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(String key) Future<String?>
Reads a value asynchronously from storage on a background thread.
toString() String
A string representation of this object.
inherited
write(String key, String value) Future<String>
Writes a value asynchronously to storage on a background thread.

Operators

operator ==(Object other) bool
The equality operator.
inherited