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