RichText.superscript constructor

const RichText.superscript({
  1. @JsonKey.new(name: 'type') @Default.new(RichTextType.superscript) RichTextType type,
  2. @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
})

A superscript text.

Implementation

const factory RichText.superscript({
  /// Type of the rich text, always "superscript"
  @JsonKey(name: 'type') @Default(RichTextType.superscript) RichTextType type,

  /// The text
  @JsonKey(name: 'text') @RichTextConverter() required RichText text,
}) = RichTextSuperscript;