DirectusStorage class abstract

Interface that any custom storage must fulfill to use their storage for storing directus internal data. SDK uses shared_preferences by default. If user wants something more secure, store remotely on some server, write to file, or to use other DB engine, user needs to implement all methods.

Implementers

Constructors

DirectusStorage()

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

getItem(String key) Future<Object?>
Call this method to get data from storage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeItem(String key) Future<void>
Call this method to remove data from storage.
setItem(String key, Object value) Future<void>
Call this method to store data.
toString() String
A string representation of this object.
inherited

Operators

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