ChatMessageAttachment class abstract

An attachement to a chat message. Typically an image or a file.

Inheritance

Constructors

ChatMessageAttachment({required String fileName, required String url, required String contentType, String? previewImage, int? previewWidth, int? previewHeight})
factory
ChatMessageAttachment.fromJson(Map<String, dynamic> jsonSerialization, SerializationManager serializationManager)
factory

Properties

contentType String
The content type of the file.
getter/setter pair
fileName String
The name of the file.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
previewHeight int?
The height of the image preview, if available.
getter/setter pair
previewImage String?
URL to an image preview of the file, if available.
getter/setter pair
previewWidth int?
The width of the image preview, if available.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
The URL to the file.
getter/setter pair

Methods

allToJson() → dynamic
Returns a serialized JSON structure of the model which also includes fields used by the database.
inherited
copyWith({String? fileName, String? url, String? contentType, String? previewImage, int? previewWidth, int? previewHeight}) ChatMessageAttachment
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a serialized JSON structure of the model, ready to be sent through the API. This does not include fields that are marked as database only.
override
toString() String
A string representation of this object.
inherited

Operators

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