LinkText class

This class represents a Telegram deeplink text.

Constructors

LinkText(Deeplink link, String text, {ParseMode parseMode = ParseMode.markdownV2, bool useTgLink = true})
Creates a new LinkText object.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
The deeplink.
final
parseMode ParseMode
Parse mode. Defaults to ParseMode.markdownV2.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The text.
final
A flag that indicates which link to use. If true, the Deeplink.tg link will be used. If false, the Deeplink.https link will be used.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHtml() String
To HTML string.
toString() String
Converts the LinkText object to a String.
override
toText() String
Converts the LinkText object to a String.

Operators

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