MessageCopyOptions class

Inheritance

Constructors

MessageCopyOptions({bool sendCopy, bool replaceCaption, FormattedText newCaption})
Options to be used when a message content is copied without a link to the original message
MessageCopyOptions.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
newCaption FormattedText
newCaption New message caption. Ignored if replace_caption is false
read / write
replaceCaption bool
replaceCaption True, if media caption of the message copy needs to be replaced. Ignored if send_copy is false
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sendCopy bool
sendCopy True, if content of the message needs to be copied without a link to the original message. Always true if the message is forwarded to a secret chat
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object. [...]
inherited

Operators

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

Constants

CONSTRUCTOR → const String
'messageCopyOptions'