Story class

This data class represents a story inside a story group.

Constructors

Story({required String id, required String title, required int index, required bool seen, required int currentTime, required Media media, List<STRProductItem>? products, String? name})
Story.fromJson(Map<String, dynamic> json)
factory

Properties

currentTime int
Time of the story that user watched
final
hashCode int
The hash code for this object.
no setterinherited
id String
ID of the story
final
index int
Index of the story among other stories of the story group
final
media Media
Media content of the story
final
name String?
Name of the story
final
products List<STRProductItem>?
Related product content of interactive incase of click action
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seen bool
State of the story that shows whether the story is seen or not
final
title String
Title of the story
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