RichText.tonAddress constructor

const RichText.tonAddress({
  1. @JsonKey.new(name: 'type') @Default.new(RichTextType.tonAddress) RichTextType type,
  2. @JsonKey.new(name: 'text') @RichTextConverter() required RichText text,
  3. @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;