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