RichText.tonAddress constructor
const
RichText.tonAddress({
- @JsonKey.new(name: 'type') @Default.new(RichTextType.tonAddress) RichTextType type,
- @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
- @JsonKey.new(name: 'address') required String address,
An address on the TON blockchain.
Implementation
const factory RichText.tonAddress({
/// Type of the rich text, always "ton_address"
@JsonKey(name: 'type') @Default(RichTextType.tonAddress) RichTextType type,
/// The text of the address
@JsonKey(name: 'text') @RichTextConverter() required RichText text,
/// The TON blockchain address
@JsonKey(name: 'address') required String address,
}) = RichTextTonAddress;