PollOption class

This object contains information about one answer option in a poll.

Constructors

PollOption({required String text, required int voterCount, List<MessageEntity>? textEntities})
Constructs a PollOption object
const
PollOption.fromJson(Map<String, dynamic> json)
Creates a PollOption object from JSON object
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. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts
final
voterCount int
Number of users that voted for this option
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a PollOption object to a JSON object
toString() String
A string representation of this object.
inherited

Operators

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