Story class

Constructors

Story({required int id, required bool deleted, required String type, required String by, required int time, required bool dead, required List kids, required int descendants, required int score, required String title, required String url})
Story.fromJson(dynamic json)
factory

Properties

by String
The username of the item's author.
final
dead bool
Story is dead or not
final
deleted bool
Story is deleted or not
final
descendants int
In the case of stories or polls, the total comment count.
final
hashCode int
The hash code for this object.
no setterinherited
id int
The item's unique id.
final
kids List
The ids of the item's comments, in ranked display order
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score int
The story's score, or the votes for a pollopt.
final
time int
Creation time of the story, in unix time
final
title String
The title of the story, poll or job.
final
type String
The type of item. One of "job", "story", "comment", "poll", or "pollopt".
final
url String
The URL 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