maybeMap<TResult extends Object?> method
TResult
maybeMap<TResult extends Object?>({
- TResult onRampDeposit()?,
- TResult transfer()?,
- TResult nftTransfer()?,
- TResult telegramGiftTransfer()?,
- TResult telegramGiftPurchase()?,
- TResult telegramGiftSale()?,
- TResult telegramGiftListing()?,
- TResult telegramGiftDelisting()?,
- TResult telegramGiftOfferCreation()?,
- TResult telegramGiftOfferAcceptance()?,
- TResult telegramGiftOfferCancellation()?,
- TResult telegramGiftOfferDecline()?,
- TResult telegramGiftOfferExpiration()?,
- TResult keyChange()?,
- required TResult orElse(),
Implementation
TResult maybeMap<TResult extends Object?>({
TResult Function(TonWalletTransactionTypeOnRampDeposit value)?
onRampDeposit,
TResult Function(TonWalletTransactionTypeTransfer value)? transfer,
TResult Function(TonWalletTransactionTypeNftTransfer value)? nftTransfer,
TResult Function(TonWalletTransactionTypeTelegramGiftTransfer value)?
telegramGiftTransfer,
TResult Function(TonWalletTransactionTypeTelegramGiftPurchase value)?
telegramGiftPurchase,
TResult Function(TonWalletTransactionTypeTelegramGiftSale value)?
telegramGiftSale,
TResult Function(TonWalletTransactionTypeTelegramGiftListing value)?
telegramGiftListing,
TResult Function(TonWalletTransactionTypeTelegramGiftDelisting value)?
telegramGiftDelisting,
TResult Function(TonWalletTransactionTypeTelegramGiftOfferCreation value)?
telegramGiftOfferCreation,
TResult Function(TonWalletTransactionTypeTelegramGiftOfferAcceptance value)?
telegramGiftOfferAcceptance,
TResult Function(
TonWalletTransactionTypeTelegramGiftOfferCancellation value)?
telegramGiftOfferCancellation,
TResult Function(TonWalletTransactionTypeTelegramGiftOfferDecline value)?
telegramGiftOfferDecline,
TResult Function(TonWalletTransactionTypeTelegramGiftOfferExpiration value)?
telegramGiftOfferExpiration,
TResult Function(TonWalletTransactionTypeKeyChange value)? keyChange,
required TResult Function() orElse,
}) {
switch (getConstructor()) {
case TonWalletTransactionTypeOnRampDeposit.constructor:
if (onRampDeposit != null) {
return onRampDeposit
.call(this as TonWalletTransactionTypeOnRampDeposit);
}
break;
case TonWalletTransactionTypeTransfer.constructor:
if (transfer != null) {
return transfer.call(this as TonWalletTransactionTypeTransfer);
}
break;
case TonWalletTransactionTypeNftTransfer.constructor:
if (nftTransfer != null) {
return nftTransfer.call(this as TonWalletTransactionTypeNftTransfer);
}
break;
case TonWalletTransactionTypeTelegramGiftTransfer.constructor:
if (telegramGiftTransfer != null) {
return telegramGiftTransfer
.call(this as TonWalletTransactionTypeTelegramGiftTransfer);
}
break;
case TonWalletTransactionTypeTelegramGiftPurchase.constructor:
if (telegramGiftPurchase != null) {
return telegramGiftPurchase
.call(this as TonWalletTransactionTypeTelegramGiftPurchase);
}
break;
case TonWalletTransactionTypeTelegramGiftSale.constructor:
if (telegramGiftSale != null) {
return telegramGiftSale
.call(this as TonWalletTransactionTypeTelegramGiftSale);
}
break;
case TonWalletTransactionTypeTelegramGiftListing.constructor:
if (telegramGiftListing != null) {
return telegramGiftListing
.call(this as TonWalletTransactionTypeTelegramGiftListing);
}
break;
case TonWalletTransactionTypeTelegramGiftDelisting.constructor:
if (telegramGiftDelisting != null) {
return telegramGiftDelisting
.call(this as TonWalletTransactionTypeTelegramGiftDelisting);
}
break;
case TonWalletTransactionTypeTelegramGiftOfferCreation.constructor:
if (telegramGiftOfferCreation != null) {
return telegramGiftOfferCreation
.call(this as TonWalletTransactionTypeTelegramGiftOfferCreation);
}
break;
case TonWalletTransactionTypeTelegramGiftOfferAcceptance.constructor:
if (telegramGiftOfferAcceptance != null) {
return telegramGiftOfferAcceptance.call(
this as TonWalletTransactionTypeTelegramGiftOfferAcceptance);
}
break;
case TonWalletTransactionTypeTelegramGiftOfferCancellation.constructor:
if (telegramGiftOfferCancellation != null) {
return telegramGiftOfferCancellation.call(
this as TonWalletTransactionTypeTelegramGiftOfferCancellation);
}
break;
case TonWalletTransactionTypeTelegramGiftOfferDecline.constructor:
if (telegramGiftOfferDecline != null) {
return telegramGiftOfferDecline
.call(this as TonWalletTransactionTypeTelegramGiftOfferDecline);
}
break;
case TonWalletTransactionTypeTelegramGiftOfferExpiration.constructor:
if (telegramGiftOfferExpiration != null) {
return telegramGiftOfferExpiration.call(
this as TonWalletTransactionTypeTelegramGiftOfferExpiration);
}
break;
case TonWalletTransactionTypeKeyChange.constructor:
if (keyChange != null) {
return keyChange.call(this as TonWalletTransactionTypeKeyChange);
}
break;
}
return orElse.call();
}