NoOpSaver<K> class

Trivial implementation of Saver. Always returns null value and successful operation result.

Implemented types

Constructors

NoOpSaver()
const

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

load<T>(K itemKey) Future<T?>
Loads the value of a data item from the storage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save<T>(K itemKey, T? value) Future<OperationResult>
Saves a value to the storage by itemKey.
override
toString() String
A string representation of this object.
inherited
validate<T>(K itemKey, T? value) OperationResult
Validates whether value is allowed to be stored for itemKey. Disallowed values will not be passed to save.
override

Operators

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