Status class

Annotations
  • @freezed

Constructors

Status({required String id, String? url, required String uri, required String content, required String spoilerText, required Visibility visibility, required int favouritesCount, required int repliesCount, required int reblogsCount, Language? language, String? inReplyToId, String? inReplyToAccountId, @JsonKey(name: 'favourited') bool? isFavourited, @JsonKey(name: 'reblogged') bool? isReblogged, @JsonKey(name: 'muted') bool? isMuted, @JsonKey(name: 'bookmarked') bool? isBookmarked, @JsonKey(name: 'sensitive') bool? isSensitive, @JsonKey(name: 'pinned') bool? isPinned, DateTime? lastStatusAt, required Account account, Application? application, Poll? poll, Status? reblog, required List<MediaAttachment> mediaAttachments, required List<Emoji> emojis, required List<Tag> tags, required DateTime createdAt})
const
factory
Status.fromJson(Map<String, Object?> json)
factory

Properties

account Account
The account that authored this status.
no setterinherited
application Application?
The application used to post this status.
no setterinherited
content String
HTML-encoded status content.
no setterinherited
copyWith → $StatusCopyWith<Status>
no setterinherited
createdAt DateTime
The date when this status was created.
no setterinherited
emojis List<Emoji>
Custom emoji to be used when rendering status content.
no setterinherited
favouritesCount int
How many favourites this status has received.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
ID of the status in the database.
no setterinherited
inReplyToAccountId String?
ID of the account being replied to.
no setterinherited
inReplyToId String?
ID of the status being replied.
no setterinherited
isBookmarked bool?
Have you bookmarked this status?
no setterinherited
isFavourited bool?
Have you favourited this status?
no setterinherited
isMuted bool?
Have you muted notifications for this status's conversation?
no setterinherited
isPinned bool?
Have you pinned this status?
no setterinherited
isReblogged bool?
Have you boosted this status?
no setterinherited
isSensitive bool?
Is this status marked as sensitive content?
no setterinherited
language Language?
Primary language of this status.
no setterinherited
lastStatusAt DateTime?
The time and date the last status was posted at.
no setterinherited
mediaAttachments List<MediaAttachment>
Media that is attached to this status.
no setterinherited
poll Poll?
The poll attached to the status.
no setterinherited
reblog Status?
The status being reblogged.
no setterinherited
reblogsCount int
How many boosts this status has received.
no setterinherited
repliesCount int
How many replies this status has received.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spoilerText String
Subject or summary line, below which status content is collapsed until expanded.
no setterinherited
tags List<Tag>
Hashtags used within the status content.
no setterinherited
uri String
URI of the status used for federation.
no setterinherited
url String?
A link to the status's HTML representation.
no setterinherited
visibility Visibility
Visibility of this status.
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