RichText.collection constructor

const RichText.collection({
  1. @JsonKey.new(name: 'type') @Default.new(RichTextType.collection) RichTextType type,
  2. required List<RichText> texts,
})

Internal factory for collection array representation

Implementation

const factory RichText.collection({
  @JsonKey(name: 'type') @Default(RichTextType.collection) RichTextType type,
  required List<RichText> texts,
}) = RichTextCollection;