User class

Annotations
  • @JsonSerializable(explicitToJson: true, fieldRename: FieldRename.snake)

Constructors

User()
User.fromJson(Map<String, dynamic> json)
factory

Properties

createdAt DateTime?
The UTC datetime that the user account was created on Twitter.
getter/setter pair
defaultProfile bool?
When true, indicates that the user has not altered the theme or background of their user profile.
getter/setter pair
defaultProfileImage bool?
When true, indicates that the user has not uploaded their own profile image and a default image is used instead.
getter/setter pair
derived Derived?
Enterprise APIs only Collection of Enrichment metadata derived for user. Provides the Profile Geo Enrichment metadata.
getter/setter pair
description String?
Nullable. The user-defined UTF-8 string describing their account.
getter/setter pair
entities UserEntities?
Entities for User Objects describe URLs that appear in the user defined profile URL and description fields.
getter/setter pair
favoritesCount int?
The number of Tweets this user has liked in the account’s lifetime.
getter/setter pair
followersCount int?
The number of followers this account currently has. Under certain conditions of duress, this field will temporarily indicate 0.
getter/setter pair
friendsCount int?
The number of users this account is following (AKA their “followings”). Under certain conditions of duress, this field will temporarily indicate 0.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
idStr String?
The string representation of the unique identifier for this User.
getter/setter pair
listedCount int?
The number of public lists that this user is a member of.
getter/setter pair
location String?
Nullable. The user-defined location for this account’s profile. Not necessarily a location, nor machine-parseable. This field will occasionally be fuzzily interpreted by the Search service.
getter/setter pair
name String?
The name of the user, as they’ve defined it. Not necessarily a person’s name. Typically capped at 50 characters, but subject to change.
getter/setter pair
profileBannerUrl String?
The HTTPS-based URL pointing to the standard web representation of the user’s uploaded profile banner. By adding a final path element of the URL, it is possible to obtain different image sizes optimized for specific displays.
getter/setter pair
profileImageUrlHttps String?
A HTTPS-based URL pointing to the user’s profile image.
getter/setter pair
protected bool?
When true, indicates that this user has chosen to protect their Tweets.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenName String?
The screen name, handle, or alias that this user identifies themselves with. screen_names are unique but subject to change. Use idStr as a user identifier whenever possible. Typically a maximum of 15 characters long, but some historical accounts may exist with longer names.
getter/setter pair
status Tweet?
Nullable. The user's most recent Tweet.
getter/setter pair
statusesCount int?
The number of Tweets (including retweets) issued by the user.
getter/setter pair
url String?
Nullable. A URL provided by the user in association with their profile.
getter/setter pair
verified bool?
When true, indicates that the user has a verified account.
getter/setter pair
withheldInCountries List<String>?
When present, indicates a list of uppercase two-letter country codes this content is withheld from. Twitter supports the following non-country values for this field:
getter/setter pair
withheldScope String?
When present, indicates that the content being withheld is a user.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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