Question class

Represents a single question and some of its answers.

Constructors

Question({Author? author, String? createTime, String? name, String? text, List<Answer>? topAnswers, int? totalAnswerCount, String? updateTime, int? upvoteCount})
Question.fromJson(Map json_)

Properties

author Author?
The author of the question.
getter/setter pair
createTime String?
The timestamp for when the question was written.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String?
The unique name for the question.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
The text of the question.
getter/setter pair
topAnswers List<Answer>?
A list of answers to the question, sorted by upvotes.
getter/setter pair
totalAnswerCount int?
The total number of answers posted for this question.
getter/setter pair
updateTime String?
The timestamp for when the question was last modified.
getter/setter pair
upvoteCount int?
The number of upvotes for the question.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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