const factory RichableParagraph( {required final List<Span> spans, required final String text, required final String type}) = _$RichableParagraph;