User class
The User class provides methods to access information about the currently authenticated user.
- Inheritance
-
- Object
- RedditBase
- User
Properties
- 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
- reddit → Reddit
-
The current Reddit instance.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
blocked(
) → Future< List< Redditor> > - Returns a Future<List<Redditor>> of blocked Redditors.
-
contributorSubreddits(
{int limit = ListingGenerator.defaultRequestLimit, Map< String, String> ? params}) → Stream<Subreddit> -
Returns a Stream of
Subreddit
s the currently authenticated user is a contributor of. -
fetch(
) → Future -
Requests the data associated with the current object.
inherited
-
friends(
) → Future< List< Redditor> > - Returns a Future<List<Redditor>> of friends.
-
karma(
) → Future< Map< Subreddit, Map< ?>String, int> > - Returns a Future<Map> mapping subreddits to karma earned on the given subreddit.
-
me(
{dynamic useCache = true}) → Future< Redditor?> - Returns a Future<Redditor> which represents the current user.
-
moderatorSubreddits(
{int limit = ListingGenerator.defaultRequestLimit, Map< String, String> ? params}) → Stream<Subreddit> -
Returns a Stream of
Subreddit
s the currently authenticated user is a moderator of. -
multireddits(
) → Future< List< Multireddit> ?> - Returns a Stream of Multireddits that belongs to the currently authenticated user.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subreddits(
{int limit = ListingGenerator.defaultRequestLimit, String? after, Map< String, String> ? params}) → Stream<Subreddit> -
Returns a Stream of
Subreddit
s the currently authenticated user is a subscriber of. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited