RichText.strikethrough constructor

const RichText.strikethrough({
  1. @JsonKey.new(name: 'type') @Default.new(RichTextType.strikethrough) RichTextType type,
  2. @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;