FileLink class final

A downloadable artifact (the video or its poster) in a RenderJobView.

Annotations
  • @immutable

Constructors

FileLink({required Uri downloadUrl, int? bytes, String? contentType, DateTime? expiresAt})
Creates a file link.
const
FileLink.fromJson(Map<String, Object?> json)
Parses a link from json.
factory

Properties

bytes → int?
Size in bytes, when known.
final
contentType → String?
MIME type, when known.
final
downloadUrl → Uri
Where to download the file (a server URL; private files carry a token).
final
expiresAt → DateTime?
When a redirect/presigned URL expires, when applicable.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The link as a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

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