MessageMedia class

Represents media attachment in a message

Constructors

MessageMedia({required String url, required String fileName, required String mimeType, required int fileSize, required MediaType type, String? thumbnailUrl, Duration? duration, int? width, int? height})
const
MessageMedia.fromMap(Map<String, dynamic> map)
factory

Properties

duration Duration?
final
fileName String
final
fileSize int
final
hashCode int
The hash code for this object.
no setteroverride
height int?
final
mimeType String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
thumbnailUrl String?
final
type MediaType
final
url String
final
width int?
final

Methods

copyWith({String? url, String? fileName, String? mimeType, int? fileSize, MediaType? type, String? thumbnailUrl, Duration? duration, int? width, int? height}) MessageMedia
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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