PollOptionData class
A poll option in the Stream Feeds system.
Contains identifier, display text, and custom metadata for a single option within a poll.
- Annotations
-
- @freezed
Constructors
-
PollOptionData({required String id, required String text, Map<
String, Object?> ? custom}) -
Creates a new PollOptionData instance.
const
Properties
-
copyWith
→ $PollOptionDataCopyWith<
PollOptionData> -
Create a copy of PollOptionData
with the given fields replaced by the non-null parameter values.
no setterinherited
-
custom
→ Map<
String, Object?> ? -
Custom data as a map.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Unique identifier for the poll option.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- text → String
-
The text of the poll option.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited