Account class

Annotations
  • @freezed

Constructors

Account({required String id, required String username, required String displayName, required String acct, required String note, required String url, required String avatar, required String avatarStatic, required String header, required String headerStatic, required int followersCount, required int followingCount, int? subscribingCount, required int statusesCount, required List<Emoji> emojis, required List<Field> fields, @JsonKey(name: 'discoverable') bool? isDiscoverable, @JsonKey(name: 'locked') bool? isLocked, @JsonKey(name: 'bot') bool? isBot, DateTime? lastStatusAt, required DateTime createdAt})
const
factory
Account.fromJson(Map<String, Object?> json)
factory

Properties

acct String
The Web finger account URI.
no setterinherited
avatar String
An image icon that is shown next to statuses and in the profile.
no setterinherited
avatarStatic String
A static version of the avatar.
no setterinherited
copyWith → $AccountCopyWith<Account>
no setterinherited
createdAt DateTime
When the account was created.
no setterinherited
displayName String
The profile's display name.
no setterinherited
emojis List<Emoji>
Custom emoji entities to be used when rendering the profile.
no setterinherited
fields List<Field>
Additional metadata attached to a profile as name-value pairs.
no setterinherited
followersCount int
An extra attribute that contains source values to be used with API methods that verify credentials and update credentials. The reported followers of this profile.
no setterinherited
followingCount int
The reported follows of this profile.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
An image banner that is shown above the profile and in profile cards.
no setterinherited
headerStatic String
A static version of the header.
no setterinherited
id String
The account id.
no setterinherited
isBot bool?
Indicates that the account may perform automated actions, may not be monitored, or identifies as a robot.
no setterinherited
isDiscoverable bool?
Whether the account has opted into discovery features such as the profile directory.
no setterinherited
isLocked bool?
Whether the account manually approves follow requests.
no setterinherited
lastStatusAt DateTime?
When the most recent status was posted.
no setterinherited
note String
The profile's bio / description.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusesCount int
How many statuses are attached to this account.
no setterinherited
subscribingCount int?
The reported subscriptions of this profile.
no setterinherited
url String
The url to the profile.
no setterinherited
username String
The username of the account, not including domain.
no setterinherited

Methods

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

Operators

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