Comment class
A fully initialized class which represents a single Reddit comment.
Constructors
- Comment.parse(Reddit reddit, Map data)
Properties
- approved → bool
-
Has this Comment been approved.
no setter
- approvedAtUtc → DateTime?
-
When this Comment was approved.
no setter
- approvedBy → RedditorRef?
-
Which Redditor approved this Comment.
no setter
- archived → bool
-
Is this Comment archived.
no setter
-
The author of the item.
no setterinherited
-
The author's flair text, if set.
no setter
- bannedAtUtc → DateTime?
-
When this Comment was removed.
no setter
- bannedBy → RedditorRef?
-
Which Redditor removed this Comment.
no setter
- body → String?
-
The body of the item.
no setterinherited
- canGild → bool
-
Is this Comment eligible for Reddit Gold.
no setter
- canModPost → bool
-
no setter
- collapsed → bool
-
Is this Comment and its children collapsed.
no setter
- collapsedReason → String?
-
The reason for this Comment being collapsed.
no setter
- createdUtc → DateTime
-
The time this Comment was created.
no setter
- data → Map?
-
Returns the raw properties dictionary for this object.
no setterinherited
- depth → int
-
The depth of this Comment in the tree of comments.
no setter
- downvotes → int
-
The number of downvotes this Comment has received.
no setter
- edited → bool
-
Has this Comment been edited.
no setter
- fullname → String?
-
The fullname of a Reddit object.
no setterinherited
- gold → int
-
The amount of gold gilded to this UserContent.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The id of a Reddit object.
no setterinherited
- ignoreReports → bool?
-
Ignore reports for this Comment.
no setter
-
infoParams
→ Map<
String, String> ? -
no setterinherited
- infoPath → String
-
The base request format for the current object.
no setterinherited
- isRoot → bool
-
Returns true if the current Comment is a top-level comment. A Comment
is a top-level comment if its parent is a Submission.
no setter
- isSubmitter → bool
-
Did the currently authenticated User post this Comment.
no setter
- linkId → String
-
The id of the Submission link.
no setter
-
modReports
→ List<
List< String> > -
A
List
of reports made by moderators.no setterinherited - newItem → bool
-
Returns true if the Inbox item is new.
no setterinherited
- numReports → int?
-
The number of reports made regarding this Comment.
no setter
- parentId → String
-
The ID of the parent Comment or Submission.
no setter
- permalink → String
-
no setter
- platinum → int
-
The amount of platinum gilded to this UserContent.
no setterinherited
- reddit → Reddit
-
The current Reddit instance.
finalinherited
- removalReason → String?
-
no setter
- removed → bool
-
Has this Comment been removed.
no setter
- replies → CommentForest?
-
A forest of replies to the current comment.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saved → bool
-
Has this Comment been saved.
no setteroverride
- score → int
-
The score associated with this Comment (aka net-upvotes).
no setteroverride
- scoreHidden → bool
-
Is this score of this Comment hidden.
no setter
- silver → int
-
The amount of silver gilded to this UserContent.
no setterinherited
- spam → bool?
-
Is this Comment marked as spam.
no setter
- stickied → bool
-
Has this Comment been stickied.
no setter
- subject → String?
-
The subject of the Inbox item.
no setterinherited
- submission → SubmissionRef
-
The Submission which this comment belongs to.
no setter
- subreddit → SubredditRef
-
The Subreddit this Comment was posted in.
no setter
- subredditId → String
-
The id of the Subreddit this Comment was posted in.
no setter
- subredditType → String
-
The type of the Subreddit this Comment was posted in.
no setter
- upvotes → int
-
The number of upvotes this Comment has received.
no setter
-
userReports
→ List<
List> -
A
List
of reports made by users.no setterinherited - vote → VoteState
-
Has the currently authenticated User voted on this UserContent.
no setterinherited
- wasComment → bool
-
Returns true if the current Inbox reply was from a Comment.
no setterinherited
Methods
-
block(
) → Future< void> -
Block the user who sent the item.
inherited
-
clearVote(
{bool waitForResponse = true}) → Future< void> -
Clear the authenticated user's vote on the object.
inherited
-
collapse(
) → Future< void> -
Mark the item as collapsed.
inherited
-
delete(
) → Future< void> -
Delete the object.
inherited
-
disableInboxReplies(
) → Future< void> -
Disable inbox replies for the item.
inherited
-
downvote(
{bool waitForResponse = true}) → Future< void> -
Clear the authenticated user's vote on the object.
inherited
-
edit(
String body) → Future< UserContent> -
Replace the body of the object with
body
.inherited -
enableInboxReplies(
) → Future< void> -
Enable inbox replies for the item.
inherited
-
fetch(
) → Future -
Requests the data associated with the current object.
inherited
-
gild(
) → Future< void> -
Gild the author of the item.
inherited
-
markRead(
) → Future< void> -
Mark the item as read.
inherited
-
markUnread(
) → Future< void> -
Mark the item as unread.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parent(
) → Future< UserContent> - Return the parent of the comment.
-
populate(
) → Future< Comment> -
Promotes this CommentRef into a populated
Comment
.inherited -
refresh(
) → Future< void> -
Requests updated information from the Reddit API and updates the current
object properties.
override
-
remove(
) → Future< void> -
Removes the message from the recipient's view of their inbox.
inherited
-
reply(
String body) → Future< Comment> -
Reply to the object.
inherited
-
report(
String reason) → Future< void> -
Report this object to the moderators of its Subreddit.
inherited
-
save(
{String? category}) → Future< void> -
Save the object.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
uncollapse(
) → Future< void> -
Mark the item as collapsed.
inherited
-
unsave(
) → Future< void> -
Unsave the object.
inherited
-
upvote(
{bool waitForResponse = true}) → Future< void> -
Clear the authenticated user's vote on the object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited