ChatMedia class Models

Constructors

ChatMedia({required String url, required String fileName, required MediaType type, bool isUploading = false, DateTime? uploadedDate, Map<String, dynamic>? customProperties})
ChatMedia.fromJson(Map<String, dynamic> jsonData)
Create a ChatMedia instance from json data
factory

Properties

customProperties Map<String, dynamic>?
A list of custom properties to extend the existing ones in case you need to store more things. Can be useful to extend existing features
getter/setter pair
fileName String
Name of the file that will be shown in some cases
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isUploading bool
If the media is still uploading, useful to add a visual feedback
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type MediaType
Type of media
getter/setter pair
uploadedDate DateTime?
Uploaded date of the media
getter/setter pair
url String
URL of the media, can local (will use FileImage) or remote (will use NetworkImage)
getter/setter pair

Methods

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

Operators

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