Comment class

Constructors

Comment({required int id, required String text, required String by, required String type, required int parent, required int time, required bool dead, required bool deleted, required List kids})
Comment.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
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
parent int
The item's parent. For comments, either another comment or the relevant story. For pollopts, the relevant poll.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The comment, story or poll text. HTML.
final
time int
Creation time of the story, in unix time
final
type String
The type of item. One of "job", "story", "comment", "poll", or "pollopt".
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