RichText.underline constructor

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

An underlined text.

Implementation

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

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