RichBlock.thinking constructor

const RichBlock.thinking({
  1. @JsonKey.new(name: 'type') @Default.new(RichBlockType.thinking) RichBlockType type,
  2. @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
})

A block with a “Thinking…” placeholder, corresponding to the custom HTML tag <tg-thinking>.

Implementation

const factory RichBlock.thinking({
  /// Type of the block, always "thinking"
  @JsonKey(name: 'type') @Default(RichBlockType.thinking) RichBlockType type,

  /// Text of the block
  @JsonKey(name: 'text') @RichTextConverter() required RichText text,
}) = RichBlockThinking;