KeyboardButtonPollType class
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
Constructors
- KeyboardButtonPollType({PollType? type})
-
Constructs a KeyboardButtonPollType object
const
-
KeyboardButtonPollType.fromJson(Map<
String, dynamic> json) -
Creates a KeyboardButtonPollType 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
- type → PollType?
-
Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts a KeyboardButtonPollType object to JSON object
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited