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