RichText.plain constructor

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

Internal factory for plain text string representation

Implementation

const factory RichText.plain({
  @JsonKey(name: 'type') @Default(RichTextType.plain) RichTextType type,
  required String text,
}) = RichTextPlain;