ZdsChatAttachment class

Attachment model for ZdsChatMessage.

Constructors

ZdsChatAttachment({required String name, ZdsChatAttachmentType type = ZdsChatAttachmentType.docNetwork, String? extension, String? content, Uri? url, String? localPath, String? id})
Constructs a ZdsChatAttachment.
const

Properties

content String?
Content of attachment encoded in base64.
final
extension String?
File type of attachment.
final
fileType String
Getter for extension.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String?
Unique id of file.
final
isPreviewable bool
Returns true if the attachment can be previewed inline, or if it must be downloaded.
no setter
localPath String?
Local path of downloaded file.
final
name String
Name of file.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ZdsChatAttachmentType
Type of file attached.
final
url Uri?
URL pointing to file content.
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