ObjectItem class

Constructors

ObjectItem({String? etag, bool? isDir, String? key, int? lastModified, int? size})
Returns a new ObjectItem instance.

Properties

etag ↔ String?
ETag is the store's entity tag for the bytes currently at this key, with the quotes the store wraps it in stripped. It is an opaque VERSION and not a checksum to verify against: a single-part upload's tag happens to be the MD5 of the content and a multipart upload's is not, and nothing here says which this was. Compare two reads of one key to learn whether the object changed; absent for a folder entry, and for an object the store reports none for.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
isDir ↔ bool?
true for a folder (common prefix)
getter/setter pair
key ↔ String?
key RELATIVE to the requested prefix
getter/setter pair
lastModified ↔ int?
unix seconds (0 for a folder)
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size ↔ int?
bytes (0 for a folder)
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → ObjectItem?
Returns a new ObjectItem instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ObjectItem>
mapFromJson(dynamic json) → Map<String, ObjectItem>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ObjectItem>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.