StatusEdit constructor
- @JsonSerializable(includeIfNull: false)
const
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,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory StatusEdit({
/// The content of the status at this revision.
required String content,
/// The content of the subject or content warning at this revision.
required String spoilerText,
/// The account that published this revision.
required Account account,
/// The current state of the poll options at this revision.
///
/// Note that edits changing the poll options will be collapsed together
/// into one edit, since this action resets the poll.
Poll? poll,
/// The current state of the poll options at this revision.
///
/// Note that edits changing the poll options will be collapsed together
/// into one edit, since this action resets the poll.
required List<MediaAttachment> mediaAttachments,
/// Any custom emoji that are used in the current revision.
required List<Emoji> emojis,
/// Whether the status was marked sensitive at this revision.
@JsonKey(name: 'sensitive') required bool isSensitive,
/// The timestamp of when the revision was published.
required DateTime createdAt,
}) = _StatusEdit;