MastodonScheduledStatusPoll class

Poll parameters of a scheduled status.

Annotations

Constructors

MastodonScheduledStatusPoll({List<String> options = const [], required int expiresIn, bool? multiple, bool? hideTotals})
Creates a MastodonScheduledStatusPoll with the given fields.
const
MastodonScheduledStatusPoll.fromJson(Map<String, dynamic> json)
Creates a MastodonScheduledStatusPoll from a JSON map.
factory

Properties

expiresIn int
Number of seconds until the poll closes.
final
hashCode int
The hash code for this object.
no setterinherited
hideTotals bool?
Whether to hide total vote counts until the poll ends.
final
multiple bool?
Whether to allow multiple choices.
final
options List<String>
Poll options.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited