SocialPollOption class

A poll option. Counts and percentages are null while the backend hides results until the current viewer has voted (except for the post owner).

Constructors

SocialPollOption({required String id, required String text, required int displayOrder, required bool isSelected, int? voteCount, double? percentage})
const
SocialPollOption.fromJson(Map<String, dynamic> json)
factory

Properties

displayOrder → int
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
isSelected → bool
final
percentage → double?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
final
voteCount → int?
final

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