PollOptionProperties class final

Contains properties of a poll option and describes actions that can be done with the option right now

Inheritance

Constructors

PollOptionProperties({required bool canBeDeleted, required bool canBeReplied, required bool canBeRepliedInAnotherChat, required bool canGetLink, dynamic extra, int? clientId})
Contains properties of a poll option and describes actions that can be done with the option right now
const
PollOptionProperties.fromJson(Map<String, dynamic> json)
Parses a PollOptionProperties from TDLib JSON.
factory

Properties

canBeDeleted → bool
True, if the option can be deleted using deletePollOption
final
canBeReplied → bool
True, if the poll option can be replied in the same chat and forum topic using inputMessageReplyToMessage
final
canBeRepliedInAnotherChat → bool
True, if the poll option can be replied in another chat or forum topic using inputMessageReplyToExternalMessage
final
True, if a link can be generated for the poll option using getMessageLink
final
clientId → int?
Identifier of the TDLib client that sent this object.
final
extra → dynamic
"@extra" of the request this object answers.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? canBeDeleted, bool? canBeReplied, bool? canBeRepliedInAnotherChat, bool? canGetLink, dynamic extra, int? clientId}) → PollOptionProperties
Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.
getConstructor() → String
TDLib type name, e.g. updateNewMessage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this object to TDLib JSON.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String
TDLib type name.