VoteableMixin mixin

A mixin which provides voting functionality for Comment and Submission.

Implemented types
Mixin Applications

Properties

author String
The author of the item.
no setter
body String?
The body of the item.
no setter
data Map?
Returns the raw properties dictionary for this object.
no setterinherited
fullname String?
The fullname of a Reddit object.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
The id of a Reddit object.
no setterinherited
infoParams Map<String, String>?
no setterinherited
infoPath String
no setterinherited
reddit Reddit
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score int
The karma score of the voteable item.
no setter
vote VoteState
Has the currently authenticated User voted on this UserContent.
no setter

Methods

clearVote({bool waitForResponse = true}) Future<void>
Clear the authenticated user's vote on the object.
downvote({bool waitForResponse = true}) Future<void>
Clear the authenticated user's vote on the object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() Future
Requests updated information from the Reddit API and updates the current object properties.
inherited
toString() String
A string representation of this object.
inherited
upvote({bool waitForResponse = true}) Future<void>
Clear the authenticated user's vote on the object.

Operators

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