StorageMetadata class

What the backend knows about a stored object. Fields the backend did not set are null rather than empty: "no content type" and "the content type is the empty string" are different answers.

Constructors

StorageMetadata({required Map<String, Object?> raw, String? bucket, String? name, String? path, String? contentType, String? cacheControl, String? contentDisposition, String? contentEncoding, String? contentLanguage, String? md5Hash, int sizeBytes = 0, DateTime? creationTime, DateTime? updatedTime, int generation = 0, int metadataGeneration = 0, Map<String, String> custom = const {}})
const
StorageMetadata.fromMap(Map<String, Object?> m)
factory

Properties

bucket String?
final
cacheControl String?
final
contentDisposition String?
final
contentEncoding String?
final
contentLanguage String?
final
contentType String?
final
creationTime DateTime?
final
custom Map<String, String>
final
generation int
final
hashCode int
The hash code for this object.
no setterinherited
md5Hash String?
final
metadataGeneration int
final
name String?
final
path String?
final
raw Map<String, Object?>
Everything the native side sent, including anything this class does not yet name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeBytes int
final
updatedTime DateTime?
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.
inherited