StatusEdit class

Represents a revision of a status that has been edited.

Annotations
  • @freezed

Constructors

StatusEdit({required String content, required String spoilerText, required Account account, Poll? poll, required List<MediaAttachment> mediaAttachments, required List<Emoji> emojis, @JsonKey(name: 'sensitive') required bool isSensitive, required DateTime createdAt})
const
factory
StatusEdit.fromJson(Map<String, Object?> json)
factory

Properties

account Account
The account that published this revision.
no setterinherited
content String
The content of the status at this revision.
no setterinherited
copyWith → $StatusEditCopyWith<StatusEdit>
no setterinherited
createdAt DateTime
The timestamp of when the revision was published.
no setterinherited
emojis List<Emoji>
Any custom emoji that are used in the current revision.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isSensitive bool
Whether the status was marked sensitive at this revision.
no setterinherited
mediaAttachments List<MediaAttachment>
The current state of the poll options at this revision.
no setterinherited
poll Poll?
The current state of the poll options at this revision.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spoilerText String
The content of the subject or content warning at this revision.
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