InputRichBlock.anchor constructor
const
InputRichBlock.anchor({
- @JsonKey.new(name: 'type') @Default.new(RichBlockType.anchor) RichBlockType type,
- @JsonKey.new(name: 'name') required String name,
A block with an anchor, corresponding to the HTML tag <a> with the attribute name.
Implementation
const factory InputRichBlock.anchor({
/// Type of the block, always "anchor"
@JsonKey(name: 'type') @Default(RichBlockType.anchor) RichBlockType type,
/// The name of the anchor
@JsonKey(name: 'name') required String name,
}) = InputRichBlockAnchor;