Account class
Represents a user of Mastodon and their associated profile. https://docs.joinmastodon.org/entities/account/
- Annotations
-
- @JsonSerializable()
Constructors
-
Account({required String id, required String username, required String acct, required String displayName, required bool locked, required DateTime createdAt, required int followersCount, required int followingCount, required int statusesCount, required String note, required Uri url, required Uri avatar, required Uri avatarStatic, required Uri header, required Uri headerStatic, required DateTime? lastStatusAt, required List<
Emoji> emojis, required Account? moved, required bool? suspended, required bool? limited, required List<Field> fields, required bool bot, required bool group, required bool? discoverable, required bool? noindex}) -
Account.fromJson(Map<
String, dynamic> json) -
factory
Properties
- acct → String
-
The Webfinger account URI. Equal to username for local users, or username@domain for remote users
final
- avatar → Uri
-
An image icon that is shown next to statuses and in the profile
final
- avatarStatic → Uri
-
A static version of the avatar. Equal to avatar if its value is a static image; different if avatar is an animated GIF
final
- bot → bool
-
A presentational flag. Indicates that the account may perform automated actions, may not be monitored, or identifies as a robot
final
- createdAt → DateTime
-
When the account was created
final
- discoverable → bool?
-
Whether the account has opted into discovery features such as the profile directory
final
- displayName → String
-
The profile's display name
final
-
emojis
→ List<
Emoji> -
Custom emoji entities to be used when rendering the profile. If none, an empty array will be returned
final
-
fields
→ List<
Field> -
Additional metadata attached to a profile as name-value pairs
final
- followersCount → int
-
The reported followers of this profile
final
- followingCount → int
-
The reported follows of this profile
final
- group → bool
-
Indicates that the account represents a Group actor.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- header → Uri
-
An image banner that is shown above the profile and in profile cards
final
- headerStatic → Uri
-
A static version of the header. Equal to header if its value is a static image; different if header is an animated GIF
final
- id → String
-
The account id
final
- lastStatusAt → DateTime?
-
The time and date the last status was posted at
final
- limited → bool?
-
An extra attribute returned only when an account is silenced. If true, indicates that the account should be hidden behind a warning screen.
final
- locked → bool
-
Whether the account manually approves follow requests
final
- moved → Account?
-
Indicates that the profile is currently inactive and that its user has moved to a new account
final
- noindex → bool?
-
Whether the local user has opted out of being indexed by search engines.
final
- note → String
-
The profile's bio / description
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusesCount → int
-
How many statuses are attached to this account
final
- suspended → bool?
-
An extra attribute returned only when an account is suspended.
final
- url → Uri
-
The location of the user's profile page
final
- username → String
-
The username of the account, not including domain
final
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