PollOption class Null safety
Represents a poll option that a user can vote for
- Annotations
Constructors
Properties
- createdAt → int
-
Timestamp (milliseconds) this option was created
final
- createdBy ↔ String?
-
ID of the user who has created the poll
read / write
- hashCode → int
-
The hash code for this object.
read-onlyoverride
- id → int
-
ID for an option. This value is unique within a poll.
final
- pollId → int
-
ID for the poll to which this option belongs.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- text → String
-
Representation of this option
final
- updatedAt ↔ int
-
Timestamp (milliseconds) this option was created
read / write
- voteCount ↔ int
-
Number of votes casted on the option
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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.
override
Static Methods
-
get(
{required PollOptionRetrievalParams params, OnPollOptionCallback? onCompleted}) → Future< PollOption> - Get Poll Options