VideoMessage class

Video message for sending videos via WhatsApp.

Inheritance
Annotations

Constructors

VideoMessage.new({required String recipient, required MediaSource source, String? mediaId, String? mediaUrl, String? caption})
Creates a new video message.
const

Properties

caption String?
Optional caption for the media
finalinherited
hashCode int
The hash code for this object.
no setterinherited
mediaId String?
Media ID if source is ID
finalinherited
mediaUrl String?
Media URL if source is URL
finalinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
recipient String
Recipient's phone number in international format
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source MediaSource
Media source type (ID or URL)
finalinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
type MessageType
The type of message
finalinherited

Methods

copyWith({String? recipient, MediaSource? source, String? mediaId, String? mediaUrl, String? caption}) VideoMessage
Creates a copy of this message with the given fields replaced.
createBaseMessageMap() Map<String, dynamic>
Creates a base message map with common properties.
inherited
getMediaTypeString() String
Gets the media type string for the API request.
override
isValid() bool
Validates the message content before sending.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the message to a JSON-serializable map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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