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