RedditorRef class

A lazily initialized class representing a particular Reddit user, also known as a Redditor. Can be promoted to a Redditor.

Inheritance
Mixed in types
Implementers

Constructors

RedditorRef(Reddit reddit)
RedditorRef.name(Reddit reddit, String name)

Properties

comments SubListing
Provides an instance of SubListing, used to make requests for Comments.
no setterinherited
displayName String
The Redditor's display name (e.g., spez or XtremeCheese).
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
infoParams Map<String, String>?
no setterinherited
infoPath String
The base request format for the current object.
no setterinherited
path String
The Reddit path suffix for this Redditor (e.g., 'user/spez/')
no setteroverride
reddit Reddit
The current Reddit instance.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream RedditorStream
Provides a RedditorStream for the current Redditor.
no setter
submissions SubListing
Provides an instance of SubListing, used to make requests for Submissions.
no setterinherited

Methods

controversial({TimeFilter timeFilter = TimeFilter.all, int? limit, String? after, Map<String, String>? params}) Stream<UserContent>
Returns a Stream of controversial comments and submissions. timeFilter is used to filter comments and submissions by time period.
inherited
downvoted({int? limit, String? after, Map<String, String>? params}) Stream<UserContent>
Returns a Stream of content that the user has downvoted.
inherited
fetch() Future
Requests the data associated with the current object.
inherited
friend({String note = ''}) Future<void>
Adds the Redditor as a friend. note is an optional string that is associated with the friend entry. Providing note requires Reddit Gold.
friendInfo() Future<Redditor>
Returns a Redditor object with friend information populated.
gild({int months = 1}) Future<void>
Gives Reddit Gold to the Redditor. months is the number of months of Reddit Gold to be given to the Redditor.
gilded({int? limit, String? after, Map<String, String>? params}) Stream<UserContentInitialized>
Returns a Stream of content that has been gilded.
inherited
gildings({int? limit, String? after, Map<String, String>? params}) Stream<UserContent>
Returns a Stream of content that the user has gilded.
inherited
hidden({int? limit, String? after, Map<String, String>? params}) Stream<UserContent>
Returns a Stream of content that the user has hidden.
inherited
hot({int? limit, String? after, Map<String, String>? params}) Stream<UserContent>
Returns a Stream of hot comments and submissions.
inherited
message(String subject, String message, {SubredditRef? fromSubreddit}) Future<void>
Send a message.
inherited
multireddits() Future<List<Multireddit>>
Returns a List of the Redditor's public Multireddit's.
newest({int? limit, String? after, Map<String, String>? params}) Stream<UserContent>
Returns a Stream of the newest comments and submissions.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
populate() Future<Redditor>
Promotes this RedditorRef into a populated Redditor.
saved({int? limit, String? after, Map<String, String>? params}) Stream<UserContent>
Returns a Stream of content that the user has saved.
inherited
top({TimeFilter timeFilter = TimeFilter.all, int? limit, String? after, Map<String, String>? params}) Stream<UserContent>
Returns a Stream of the top comments and submissions.
inherited
toString() String
A string representation of this object.
inherited
trophies() Future<List<Trophy>>
Returns a list of Trophy that this Redditor has
unblock() Future<void>
Unblock the Redditor.
unfriend() Future<void>
Unfriend the Redditor.
upvoted({int? limit, String? after, Map<String, String>? params}) Stream<UserContent>
Returns a Stream of content that the user has upvoted.
inherited

Operators

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