Status class

Represents a status posted by an account. https://docs.joinmastodon.org/entities/status/

Annotations
  • @JsonSerializable()

Constructors

Status({required String id, required String uri, required Uri? url, required Account account, required String? inReplyToId, required String? inReplyToAccountId, required Status? reblog, required String content, required String? text, required DateTime createdAt, required List<Emoji> emojis, required int repliesCount, required int reblogsCount, required int favouritesCount, required bool reblogged, required bool favourited, required bool muted, required bool bookmarked, required bool sensitive, required String spoilerText, required Visibility visibility, required List<Attachment> mediaAttachments, required List<Mention> mentions, required List<Tag> tags, required Card? card, required Application? application, required Object? language, required bool pinned, required Poll? poll})
Status.fromJson(Map<String, dynamic> json)
factory

Properties

account Account
The account that authored this status
final
application Application?
The application used to post this status
final
bookmarked bool
Have you bookmarked this status?
final
card Card?
Preview card for links included within status content
final
content String
Represents the HTML content string of a Status
final
createdAt DateTime
The date when this status was created
final
emojis List<Emoji>
Custom emoji to be used when rendering status content
final
favourited bool
Have you favourited this status?
final
favouritesCount int
How many favourites this status has received
final
hashCode int
The hash code for this object.
no setterinherited
id String
ID of the status in the database
final
inReplyToAccountId String?
ID of the account being replied to
final
inReplyToId String?
ID of the status being replied
final
language Object?
Primary language of this status
final
mediaAttachments List<Attachment>
Media that is attached to this status
final
mentions List<Mention>
Mentions of users within the status content
final
muted bool
Have you muted notifications for this status's conversation?
final
pinned bool
Have you pinned this status? Only appears if the status is pinnable.
final
poll Poll?
The poll attached to the status
final
reblog Status?
The status being reblogged
final
reblogged bool
Have you boosted this status?
final
reblogsCount int
How many boosts this status has received
final
repliesCount int
How many replies this status has received
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensitive bool
Is this status marked as sensitive content?
final
spoilerText String
Subject or summary line, below which status content is collapsed until expanded
final
tags List<Tag>
Hashtags used within the status content TODO: handle empty lists
final
text String?
Plain-text source of a status. Returned instead of content when status is deleted, so the user may redraft from the source text without the client having to reverse-engineer the original text from the HTML content.
final
uri String
URI of the status used for federation
final
url Uri?
A link to the status's HTML representation
final
visibility Visibility
Visibility of this status. Enumerated by Visibility
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