Story class Null safety

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, 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.
read-onlyinherited
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
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
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 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