PollVoteEvent class
Class representing an event that one or more vote has been casted on a poll option. The affected poll may be in multiple channels. This event will be passed to GroupChannelHandler.onPollVoted. Once this event is received, the user must find cached messages that contain this poll and apply changes using Poll.applyPollVoteEvent.
Constructors
-
PollVoteEvent({required int pollId, required int messageId, required Map<
String, dynamic> json}) -
PollVoteEvent.fromJson(Map<
String, dynamic> res) -
factory
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
-
json
↔ Map<
String, dynamic> -
read / write
- messageId ↔ int
-
Id of the message that contains the Poll.
read / write
- pollId ↔ int
-
Id of the voted Poll.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited