TonWalletTransactionTypeTransfer class

A transfer of TON Grams to or from the wallet

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

TonWalletTransactionTypeTransfer({required int amount, required bool isGasless, required String comment, required bool isCommentEncrypted})
const

Properties

amount → int
amount The amount of received cryptocurrency, in the smallest units of the cryptocurrency; negative for outgoing transactions
final
comment → String
comment Comment added to the transaction
final
hashCode → int
The hash code for this object.
no setteroverride
isCommentEncrypted → bool
isCommentEncrypted True, if the comment is encrypted and must be decrypted using the user's private key
final
isGasless → bool
isGasless True, if the fee was paid by Telegram
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? amount, bool? isGasless, String? comment, bool? isCommentEncrypted}) → TonWalletTransactionTypeTransfer

Available on TonWalletTransactionTypeTransfer, provided by the TonWalletTransactionTypeTransferExtensions extension

getConstructor() → String
override
map<TResult extends Object?>({required TResult onRampDeposit(TonWalletTransactionTypeOnRampDeposit value), required TResult transfer(TonWalletTransactionTypeTransfer value), required TResult nftTransfer(TonWalletTransactionTypeNftTransfer value), required TResult telegramGiftTransfer(TonWalletTransactionTypeTelegramGiftTransfer value), required TResult keyChange(TonWalletTransactionTypeKeyChange value)}) → TResult

Available on TonWalletTransactionType, provided by the TonWalletTransactionTypeExtensions extension

maybeMap<TResult extends Object?>({TResult onRampDeposit(TonWalletTransactionTypeOnRampDeposit value)?, TResult transfer(TonWalletTransactionTypeTransfer value)?, TResult nftTransfer(TonWalletTransactionTypeNftTransfer value)?, TResult telegramGiftTransfer(TonWalletTransactionTypeTelegramGiftTransfer value)?, TResult keyChange(TonWalletTransactionTypeKeyChange value)?, required TResult orElse()}) → TResult

Available on TonWalletTransactionType, provided by the TonWalletTransactionTypeExtensions extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Constants

constructor → const String