StorageItem class final

A single item loaded from a storage backend.

Constructors

StorageItem({required String storageId, required String storageName, required String key, required Object? value, required StorageValueKind kind, DateTime? updatedAt})
Creates a storage item model.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
Key used to access the stored value.
final
kind StorageValueKind
Inferred value kind used for filtering and editing.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storageId String
Stable identifier of the adapter that loaded this item.
final
storageName String
Human-readable name of the storage source.
final
updatedAt DateTime?
Optional timestamp for the most recent update, when available.
final
value Object?
Current raw value loaded from storage.
final

Methods

copyWith({Object? value = _sentinel, StorageValueKind? kind, Object? updatedAt = _sentinel}) StorageItem
Returns a copy of this item with the provided fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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