StoryItem class

Represents a story with a URL, viewers and type.

Constructors

StoryItem({required String url, List? viewers, required StoryItemType type, int? duration = 3})
Constructs a new StoryItem instance with the given url, viewers, type and duration.
const

Properties

duration int?
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type StoryItemType
The type of the story.
final
url String
The URL of the story.
final
viewers List?
The viewers of the story.
final

Methods

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

Operators

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