RichText.bold constructor

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

A bold text.

Implementation

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

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