StoredObject class

Metadata about a stored object, as the backend reports it.

Annotations
  • @immutable

Constructors

StoredObject({required String key, required int sizeBytes, String? sha256, String? contentType, DateTime? modifiedAt, String? etag})
Creates object metadata.
const

Properties

contentType String?
MIME type, if the backend records one.
final
etag String?
The backend's opaque entity tag, if any — used for conditional requests.
final
hashCode int
The hash code for this object.
no setteroverride
key String
The key the object is stored under.
final
modifiedAt DateTime?
Last modification time (UTC), if known.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sha256 String?
Lower-case hex SHA-256 of the content, or null if the backend does not know it.
final
sizeBytes int
Size in bytes.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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