PollCreateParams class

Parameters for creating poll and updating poll operations. For poll creation, title and optionTexts are required and all other members are optional. For poll update, all members are optional.

Annotations

Constructors

PollCreateParams({required String title, required List<String> optionTexts, PollData? data, bool? allowUserSuggestion, bool? allowMultipleVotes, int closeAt = -1})

Properties

allowMultipleVotes bool?
Whether to allow multiple vote casting
read / write
allowUserSuggestion bool?
Whether to allow user-suggested options
read / write
closeAt int
Unix timestamp at which the poll has closed or will close (second)
read / write
data PollData?
An additional text to accompany the poll.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
optionTexts List<String>
Options for this poll.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
title String
Title of the poll.
read / write

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