InputPollOption class
Represents an input poll option.
Constructors
-
InputPollOption({required String text, ParseMode? textParseMode, List<
MessageEntity> ? textEntities}) -
Creates an InputPollOption object.
const
-
InputPollOption.fromJson(Map<
String, dynamic> json) -
Creates an InputPollOption object from a JSON map.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
Option text, 1-100 characters.
final
-
textEntities
→ List<
MessageEntity> ? -
Optional. A list of special entities that appear in the poll option text.
final
- textParseMode → ParseMode?
-
Optional. Mode for parsing entities in the text.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this object to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited