StoryPollComponent class Null safety

This data class represents the Poll component.

Implemented types

Constructors

StoryPollComponent({required String type, required String id, required List<String> options, String? customPayload, required int selectedOptionIndex, required String title})
StoryPollComponent.fromJson(Map<String, dynamic> json)
factory

Properties

customPayload String?
customPayload Custom payload for this poll if exists
final
hashCode int
The hash code for this object.
read-onlyinherited
id String
id of the interactive component
final
options List<String>
options List of options in the poll
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
selectedOptionIndex int
selectedOptionIndex Option index that the user selected
final
title String
title Title of the poll if exists
final
type String
type Type of the interactive component
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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