RichText.strikethrough constructor
const
RichText.strikethrough({
- @JsonKey.new(name: 'type') @Default.new(RichTextType.strikethrough) RichTextType type,
- @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
A strikethrough text.
Implementation
const factory RichText.strikethrough({
/// Type of the rich text, always "strikethrough"
@JsonKey(name: 'type')
@Default(RichTextType.strikethrough)
RichTextType type,
/// The text
@JsonKey(name: 'text') @RichTextConverter() required RichText text,
}) = RichTextStrikethrough;