MastodonStatus class

Mastodon status (post).

Corresponds to responses from /api/v1/statuses/:id and various timeline APIs.

Annotations

Constructors

MastodonStatus({required String id, required DateTime createdAt, required bool sensitive, required String spoilerText, required MastodonVisibility visibility, required String content, required int reblogsCount, required int favouritesCount, required int repliesCount, required MastodonAccount account, required List<MastodonMediaAttachment> mediaAttachments, required List<MastodonMention> mentions, required List<MastodonTag> tags, required List<MastodonCustomEmoji> emojis, String? uri, String? url, String? inReplyToId, String? inReplyToAccountId, String? language, String? text, DateTime? editedAt, bool? favourited, bool? reblogged, bool? bookmarked, bool? muted, bool? pinned, MastodonStatus? reblog, MastodonPoll? poll, MastodonStatus? quote})
const
MastodonStatus.fromJson(Map<String, dynamic> json)
factory

Properties

account MastodonAccount
Account of the author.
final
bookmarked bool?
Whether the authenticated user has bookmarked this status.
final
content String
Body text of the status (HTML format).
final
createdAt DateTime
Timestamp when the status was posted.
final
editedAt DateTime?
Timestamp of the last edit. Null if never edited.
final
emojis List<MastodonCustomEmoji>
List of custom emojis used in the status.
final
favourited bool?
Whether the authenticated user has favourited this status.
final
favouritesCount int
Number of favourites.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Internal ID of the status.
final
inReplyToAccountId String?
ID of the account being replied to.
final
inReplyToId String?
ID of the status being replied to.
final
language String?
Language code (BCP47 format).
final
mediaAttachments List<MastodonMediaAttachment>
List of media attachments.
final
mentions List<MastodonMention>
List of mentions.
final
muted bool?
Whether the authenticated user has muted the thread.
final
pinned bool?
Whether the status is pinned.
final
poll MastodonPoll?
Poll. Null if the status does not have a poll.
final
quote MastodonStatus?
Quoted status (Mastodon 4.5+ / FEP-044f). Null if not a quote.
final
reblog MastodonStatus?
Original boosted status. Null if not a boost.
final
reblogged bool?
Whether the authenticated user has boosted this status.
final
reblogsCount int
Number of boosts.
final
repliesCount int
Number of replies.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensitive bool
Whether the status is marked as sensitive content.
final
spoilerText String
Content warning (CW) text. Empty string if none.
final
tags List<MastodonTag>
List of hashtags.
final
text String?
Plain text of the status body. Included only in certain APIs such as edit history retrieval.
final
uri String?
URI of the status (ActivityPub identifier).
final
url String?
Permalink URL of the status.
final
visibility MastodonVisibility
Visibility of the status.
final

Methods

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

Operators

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