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