KoolbaseFileInfo class

One file.

Constructors

KoolbaseFileInfo({required String path, required int size, String? contentType, String? etag, Map<String, String> metadata = const {}, String? versionId, String? uploadedBy, required DateTime createdAt, required DateTime updatedAt, String? publicUrl})
const
KoolbaseFileInfo.fromJson(Map<String, dynamic> json)
factory

Properties

contentType → String?
final
createdAt → DateTime
final
etag → String?
final
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, String>
final
name → String
The file's name: the last part of its path.
no setter
path → String
Its path in the bucket: what a record stores to point at it.
final
publicUrl → String?
Its permanent link, while its bucket is public; null otherwise -- ask for a download link instead.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
final
updatedAt → DateTime
final
uploadedBy → String?
Who uploaded it: a project user's id; null when the project did.
final
versionId → String?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
The file as a map of its fields -- id (its path), path, name, size, contentType, createdAt, updatedAt, uploadedBy, publicUrl, metadata -- for code that reads fields by name (a Designer screen's rows).
toString() → String
A string representation of this object.
inherited

Operators

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