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.new({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.
no setterinherited
json Map<String, dynamic>
getter/setter pair
messageId int
Id of the message that contains the Poll.
getter/setter pair
pollId int
Id of the updated Poll.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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