PollUpdateEvent class
Class representing an event that a Poll has been updated. This event will be passed to GroupChannelHandler.onPollUpdated. Once this event is received, the user must find cached messages that contain this poll and apply changes using Poll.applyPollUpdateEvent.
Constructors
-
PollUpdateEvent({required int pollId, required int messageId, required Map<
String, dynamic> json}) -
PollUpdateEvent.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 updated 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