MastodonStatusEdit class

Revision of a status edit.

Corresponds to an element of the response from GET /api/v1/statuses/:id/history. Holds the status content at the time of each revision.

Annotations

Constructors

MastodonStatusEdit({required String content, required String spoilerText, required bool sensitive, required DateTime createdAt, required MastodonAccount account, required List<MastodonMediaAttachment> mediaAttachments, required List<MastodonCustomEmoji> emojis, MastodonStatusEditPoll? poll})
const
MastodonStatusEdit.fromJson(Map<String, dynamic> json)
factory

Properties

account MastodonAccount
Account that published the revision.
final
content String
Body text of the status at revision time (HTML format).
final
createdAt DateTime
Timestamp when the revision was published.
final
emojis List<MastodonCustomEmoji>
List of custom emojis at revision time.
final
hashCode int
The hash code for this object.
no setterinherited
mediaAttachments List<MastodonMediaAttachment>
List of media attachments at revision time.
final
poll MastodonStatusEditPoll?
Poll at revision time. null if no poll.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sensitive bool
Whether the status was marked as sensitive at revision time.
final
spoilerText String
Content warning text at revision time.
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