KeyboardButtonPollType class abstract
This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.
- Annotations
-
- @freezed
Constructors
- KeyboardButtonPollType.new({@JsonKey(name: 'type') PollType? type})
-
Constructs a KeyboardButtonPollType object
constfactory
-
KeyboardButtonPollType.fromJson(Map<
String, dynamic> json) -
Creates a KeyboardButtonPollType object from JSON object
factory
Properties
-
copyWith
→ $KeyboardButtonPollTypeCopyWith<
KeyboardButtonPollType> -
Create a copy of KeyboardButtonPollType
with the given fields replaced by the non-null parameter values.
no setterinherited
- 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.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this KeyboardButtonPollType to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited