Poll class

Constructors

Poll({required int id, required String text, required String title, required int score, required int descendants, required String by, required String type, required int parent, required int time, required bool dead, required bool deleted, required List kids, required List parts})
Poll.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
parent int
story parent
final
parts List
A list of related pollopts, in 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
text String
The comment, story or poll text. HTML.
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

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