KeyboardButtonPollType class
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
- Annotations
-
- @JsonSerializable.new(includeIfNull: false)
Constructors
- KeyboardButtonPollType({String? type})
-
KeyboardButtonPollType.fromJson(Map<
String, dynamic> json) -
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 ↔ String?
-
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.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited