MediaAttachment class

Annotations
  • @freezed

Constructors

MediaAttachment({required String id, required MediaAttachmentType type, String? url, required String previewUrl, String? remoteUrl, required MediaMeta meta, String? description, @JsonKey(name: 'blurhash') String? blurHash})
const
factory
MediaAttachment.fromJson(Map<String, Object?> json)
factory

Properties

blurHash String?
A hash computed by the BlurHash algorithm, for generating colorful preview thumbnails when media has not been downloaded yet.
no setterinherited
copyWith → $MediaAttachmentCopyWith<MediaAttachment>
no setterinherited
description String?
Alternate text that describes what is in the media attachment, to be used for the visually impaired or when media attachments do not load.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the attachment in the database.
no setterinherited
meta MediaMeta
Metadata returned by Paperclip.
no setterinherited
previewUrl String
The location of a scaled-down preview of the attachment.
no setterinherited
remoteUrl String?
The location of the full-size original attachment on the remote website.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type MediaAttachmentType
The type of the attachment.
no setterinherited
url String?
The location of the original full-size attachment.
no setterinherited

Methods

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

Operators

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