RichText.hashtag constructor
const
RichText.hashtag({
- @JsonKey.new(name: 'type') @Default.new(RichTextType.hashtag) RichTextType type,
- @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
- @JsonKey.new(name: 'hashtag') required String hashtag,
A hashtag.
Implementation
const factory RichText.hashtag({
/// Type of the rich text, always "hashtag"
@JsonKey(name: 'type') @Default(RichTextType.hashtag) RichTextType type,
/// The text
@JsonKey(name: 'text') @RichTextConverter() required RichText text,
/// The hashtag
@JsonKey(name: 'hashtag') required String hashtag,
}) = RichTextHashtag;