User class

Data structure comprising information about a user account

Inheritance

Constructors

User(API api)
User.from(API api, Map<String, dynamic> data)
factory

Properties

api API
final
avatarUrl String?
data'avatar_url'
getter/setter pair
badges List<Badge>?
data'badges'
getter/setter pair
bannerUrl String?
data'banner_url'
getter/setter pair
bio Body?
data'bio'; 'bio_html'
getter/setter pair
createdAt int?
data'created_utc'
getter/setter pairinherited
flags UserFlags?
data'is_banned'; 'is_private'; 'is_premium'; 'ban_reason'
getter/setter pair
fullId String?
data'fullname'
getter/setter pairinherited
API.host + data'permalink'
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
id String?
data'id'
getter/setter pairinherited
data'permalink'
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stats UserStats?
data'post_count'; 'post_rep'; 'comment_count'; 'comment_rep'
getter/setter pair
title Title?
data'title'
getter/setter pair
username String?
data'username'
getter/setter pair

Methods

fetchData(String username) Future
fetchPosts({SortType sortType = SortType.Hot, required int page, required int quantity}) Future<List<Post>>
Gets and returns a list of Posts from this User's profile
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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