FileStat class final

Metadata and properties reported for a stored file.

Constructors

FileStat({required int size, DateTime? lastModified, String? contentType, String? cacheControl, String? contentDisposition, String? contentEncoding, String? etag, Map<String, String> custom = const {}})
Creates file statistics.
const

Properties

cacheControl → String?
HTTP cache control value of the file, when supplied by the storage.
final
contentDisposition → String?
HTTP content disposition value, when supplied by the storage.
final
contentEncoding → String?
HTTP content encoding value, when supplied by the storage.
final
contentType → String?
MIME type of the file, when supplied by the storage.
final
custom → Map<String, String>
User-defined metadata returned by the storage.
final
etag → String?
Provider entity tag or generation identifier.
final
hashCode → int
The hash code for this object.
no setterinherited
lastModified → DateTime?
Time at which the file was last modified, when supplied by the storage.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
File 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.
inherited

Operators

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