maybeMap<TResult extends Object?> method
TResult
maybeMap<TResult extends Object?>({
- TResult attachmentMenuBot()?,
- TResult authenticationCode()?,
- TResult background()?,
- TResult botAddToChannel()?,
- TResult botStart(
- InternalLinkTypeBotStart value
- TResult botStartInGroup()?,
- TResult businessChat()?,
- TResult callsPage()?,
- TResult chatAffiliateProgram()?,
- TResult chatBoost()?,
- TResult chatFolderInvite()?,
- TResult chatInvite()?,
- TResult chatSelection()?,
- TResult contactsPage()?,
- TResult directMessagesChat()?,
- TResult game(
- InternalLinkTypeGame value
- TResult giftAuction()?,
- TResult giftCollection()?,
- TResult groupCall()?,
- TResult instantView()?,
- TResult invoice(
- InternalLinkTypeInvoice value
- TResult languagePack()?,
- TResult liveStory()?,
- TResult mainWebApp()?,
- TResult message(
- InternalLinkTypeMessage value
- TResult messageDraft()?,
- TResult myProfilePage()?,
- TResult newChannelChat()?,
- TResult newGroupChat()?,
- TResult newPrivateChat()?,
- TResult newStory(
- InternalLinkTypeNewStory value
- TResult oauth(
- InternalLinkTypeOauth value
- TResult passportDataRequest()?,
- TResult phoneNumberConfirmation()?,
- TResult proxy(
- InternalLinkTypeProxy value
- TResult publicChat()?,
- TResult qrCodeAuthentication()?,
- TResult requestManagedBot()?,
- TResult restorePurchases()?,
- TResult savedMessages()?,
- TResult search(
- InternalLinkTypeSearch value
- TResult settings(
- InternalLinkTypeSettings value
- TResult starPurchase()?,
- TResult stickerSet()?,
- TResult story(
- InternalLinkTypeStory value
- TResult storyAlbum()?,
- TResult textCompositionStyle()?,
- TResult theme(
- InternalLinkTypeTheme value
- TResult unknownDeepLink()?,
- TResult upgradedGift()?,
- TResult userPhoneNumber()?,
- TResult userToken()?,
- TResult videoChat()?,
- TResult webApp(
- InternalLinkTypeWebApp value
- required TResult orElse(),
Implementation
TResult maybeMap<TResult extends Object?>({
TResult Function(InternalLinkTypeAttachmentMenuBot value)?
attachmentMenuBot,
TResult Function(InternalLinkTypeAuthenticationCode value)?
authenticationCode,
TResult Function(InternalLinkTypeBackground value)? background,
TResult Function(InternalLinkTypeBotAddToChannel value)? botAddToChannel,
TResult Function(InternalLinkTypeBotStart value)? botStart,
TResult Function(InternalLinkTypeBotStartInGroup value)? botStartInGroup,
TResult Function(InternalLinkTypeBusinessChat value)? businessChat,
TResult Function(InternalLinkTypeCallsPage value)? callsPage,
TResult Function(InternalLinkTypeChatAffiliateProgram value)?
chatAffiliateProgram,
TResult Function(InternalLinkTypeChatBoost value)? chatBoost,
TResult Function(InternalLinkTypeChatFolderInvite value)? chatFolderInvite,
TResult Function(InternalLinkTypeChatInvite value)? chatInvite,
TResult Function(InternalLinkTypeChatSelection value)? chatSelection,
TResult Function(InternalLinkTypeContactsPage value)? contactsPage,
TResult Function(InternalLinkTypeDirectMessagesChat value)?
directMessagesChat,
TResult Function(InternalLinkTypeGame value)? game,
TResult Function(InternalLinkTypeGiftAuction value)? giftAuction,
TResult Function(InternalLinkTypeGiftCollection value)? giftCollection,
TResult Function(InternalLinkTypeGroupCall value)? groupCall,
TResult Function(InternalLinkTypeInstantView value)? instantView,
TResult Function(InternalLinkTypeInvoice value)? invoice,
TResult Function(InternalLinkTypeLanguagePack value)? languagePack,
TResult Function(InternalLinkTypeLiveStory value)? liveStory,
TResult Function(InternalLinkTypeMainWebApp value)? mainWebApp,
TResult Function(InternalLinkTypeMessage value)? message,
TResult Function(InternalLinkTypeMessageDraft value)? messageDraft,
TResult Function(InternalLinkTypeMyProfilePage value)? myProfilePage,
TResult Function(InternalLinkTypeNewChannelChat value)? newChannelChat,
TResult Function(InternalLinkTypeNewGroupChat value)? newGroupChat,
TResult Function(InternalLinkTypeNewPrivateChat value)? newPrivateChat,
TResult Function(InternalLinkTypeNewStory value)? newStory,
TResult Function(InternalLinkTypeOauth value)? oauth,
TResult Function(InternalLinkTypePassportDataRequest value)?
passportDataRequest,
TResult Function(InternalLinkTypePhoneNumberConfirmation value)?
phoneNumberConfirmation,
TResult Function(InternalLinkTypePremiumFeaturesPage value)?
premiumFeaturesPage,
TResult Function(InternalLinkTypePremiumGiftCode value)? premiumGiftCode,
TResult Function(InternalLinkTypePremiumGiftPurchase value)?
premiumGiftPurchase,
TResult Function(InternalLinkTypeProxy value)? proxy,
TResult Function(InternalLinkTypePublicChat value)? publicChat,
TResult Function(InternalLinkTypeQrCodeAuthentication value)?
qrCodeAuthentication,
TResult Function(InternalLinkTypeRequestManagedBot value)?
requestManagedBot,
TResult Function(InternalLinkTypeRestorePurchases value)? restorePurchases,
TResult Function(InternalLinkTypeSavedMessages value)? savedMessages,
TResult Function(InternalLinkTypeSearch value)? search,
TResult Function(InternalLinkTypeSettings value)? settings,
TResult Function(InternalLinkTypeStarPurchase value)? starPurchase,
TResult Function(InternalLinkTypeStickerSet value)? stickerSet,
TResult Function(InternalLinkTypeStory value)? story,
TResult Function(InternalLinkTypeStoryAlbum value)? storyAlbum,
TResult Function(InternalLinkTypeTextCompositionStyle value)?
textCompositionStyle,
TResult Function(InternalLinkTypeTheme value)? theme,
TResult Function(InternalLinkTypeUnknownDeepLink value)? unknownDeepLink,
TResult Function(InternalLinkTypeUpgradedGift value)? upgradedGift,
TResult Function(InternalLinkTypeUserPhoneNumber value)? userPhoneNumber,
TResult Function(InternalLinkTypeUserToken value)? userToken,
TResult Function(InternalLinkTypeVideoChat value)? videoChat,
TResult Function(InternalLinkTypeWebApp value)? webApp,
required TResult Function() orElse,
}) {
switch (getConstructor()) {
case InternalLinkTypeAttachmentMenuBot.constructor:
if (attachmentMenuBot != null) {
return attachmentMenuBot.call(
this as InternalLinkTypeAttachmentMenuBot,
);
}
break;
case InternalLinkTypeAuthenticationCode.constructor:
if (authenticationCode != null) {
return authenticationCode.call(
this as InternalLinkTypeAuthenticationCode,
);
}
break;
case InternalLinkTypeBackground.constructor:
if (background != null) {
return background.call(this as InternalLinkTypeBackground);
}
break;
case InternalLinkTypeBotAddToChannel.constructor:
if (botAddToChannel != null) {
return botAddToChannel.call(this as InternalLinkTypeBotAddToChannel);
}
break;
case InternalLinkTypeBotStart.constructor:
if (botStart != null) {
return botStart.call(this as InternalLinkTypeBotStart);
}
break;
case InternalLinkTypeBotStartInGroup.constructor:
if (botStartInGroup != null) {
return botStartInGroup.call(this as InternalLinkTypeBotStartInGroup);
}
break;
case InternalLinkTypeBusinessChat.constructor:
if (businessChat != null) {
return businessChat.call(this as InternalLinkTypeBusinessChat);
}
break;
case InternalLinkTypeCallsPage.constructor:
if (callsPage != null) {
return callsPage.call(this as InternalLinkTypeCallsPage);
}
break;
case InternalLinkTypeChatAffiliateProgram.constructor:
if (chatAffiliateProgram != null) {
return chatAffiliateProgram.call(
this as InternalLinkTypeChatAffiliateProgram,
);
}
break;
case InternalLinkTypeChatBoost.constructor:
if (chatBoost != null) {
return chatBoost.call(this as InternalLinkTypeChatBoost);
}
break;
case InternalLinkTypeChatFolderInvite.constructor:
if (chatFolderInvite != null) {
return chatFolderInvite.call(
this as InternalLinkTypeChatFolderInvite,
);
}
break;
case InternalLinkTypeChatInvite.constructor:
if (chatInvite != null) {
return chatInvite.call(this as InternalLinkTypeChatInvite);
}
break;
case InternalLinkTypeChatSelection.constructor:
if (chatSelection != null) {
return chatSelection.call(this as InternalLinkTypeChatSelection);
}
break;
case InternalLinkTypeContactsPage.constructor:
if (contactsPage != null) {
return contactsPage.call(this as InternalLinkTypeContactsPage);
}
break;
case InternalLinkTypeDirectMessagesChat.constructor:
if (directMessagesChat != null) {
return directMessagesChat.call(
this as InternalLinkTypeDirectMessagesChat,
);
}
break;
case InternalLinkTypeGame.constructor:
if (game != null) {
return game.call(this as InternalLinkTypeGame);
}
break;
case InternalLinkTypeGiftAuction.constructor:
if (giftAuction != null) {
return giftAuction.call(this as InternalLinkTypeGiftAuction);
}
break;
case InternalLinkTypeGiftCollection.constructor:
if (giftCollection != null) {
return giftCollection.call(this as InternalLinkTypeGiftCollection);
}
break;
case InternalLinkTypeGroupCall.constructor:
if (groupCall != null) {
return groupCall.call(this as InternalLinkTypeGroupCall);
}
break;
case InternalLinkTypeInstantView.constructor:
if (instantView != null) {
return instantView.call(this as InternalLinkTypeInstantView);
}
break;
case InternalLinkTypeInvoice.constructor:
if (invoice != null) {
return invoice.call(this as InternalLinkTypeInvoice);
}
break;
case InternalLinkTypeLanguagePack.constructor:
if (languagePack != null) {
return languagePack.call(this as InternalLinkTypeLanguagePack);
}
break;
case InternalLinkTypeLiveStory.constructor:
if (liveStory != null) {
return liveStory.call(this as InternalLinkTypeLiveStory);
}
break;
case InternalLinkTypeMainWebApp.constructor:
if (mainWebApp != null) {
return mainWebApp.call(this as InternalLinkTypeMainWebApp);
}
break;
case InternalLinkTypeMessage.constructor:
if (message != null) {
return message.call(this as InternalLinkTypeMessage);
}
break;
case InternalLinkTypeMessageDraft.constructor:
if (messageDraft != null) {
return messageDraft.call(this as InternalLinkTypeMessageDraft);
}
break;
case InternalLinkTypeMyProfilePage.constructor:
if (myProfilePage != null) {
return myProfilePage.call(this as InternalLinkTypeMyProfilePage);
}
break;
case InternalLinkTypeNewChannelChat.constructor:
if (newChannelChat != null) {
return newChannelChat.call(this as InternalLinkTypeNewChannelChat);
}
break;
case InternalLinkTypeNewGroupChat.constructor:
if (newGroupChat != null) {
return newGroupChat.call(this as InternalLinkTypeNewGroupChat);
}
break;
case InternalLinkTypeNewPrivateChat.constructor:
if (newPrivateChat != null) {
return newPrivateChat.call(this as InternalLinkTypeNewPrivateChat);
}
break;
case InternalLinkTypeNewStory.constructor:
if (newStory != null) {
return newStory.call(this as InternalLinkTypeNewStory);
}
break;
case InternalLinkTypeOauth.constructor:
if (oauth != null) {
return oauth.call(this as InternalLinkTypeOauth);
}
break;
case InternalLinkTypePassportDataRequest.constructor:
if (passportDataRequest != null) {
return passportDataRequest.call(
this as InternalLinkTypePassportDataRequest,
);
}
break;
case InternalLinkTypePhoneNumberConfirmation.constructor:
if (phoneNumberConfirmation != null) {
return phoneNumberConfirmation.call(
this as InternalLinkTypePhoneNumberConfirmation,
);
}
break;
case InternalLinkTypePremiumFeaturesPage.constructor:
if (premiumFeaturesPage != null) {
return premiumFeaturesPage.call(
this as InternalLinkTypePremiumFeaturesPage,
);
}
break;
case InternalLinkTypePremiumGiftCode.constructor:
if (premiumGiftCode != null) {
return premiumGiftCode.call(this as InternalLinkTypePremiumGiftCode);
}
break;
case InternalLinkTypePremiumGiftPurchase.constructor:
if (premiumGiftPurchase != null) {
return premiumGiftPurchase.call(
this as InternalLinkTypePremiumGiftPurchase,
);
}
break;
case InternalLinkTypeProxy.constructor:
if (proxy != null) {
return proxy.call(this as InternalLinkTypeProxy);
}
break;
case InternalLinkTypePublicChat.constructor:
if (publicChat != null) {
return publicChat.call(this as InternalLinkTypePublicChat);
}
break;
case InternalLinkTypeQrCodeAuthentication.constructor:
if (qrCodeAuthentication != null) {
return qrCodeAuthentication.call(
this as InternalLinkTypeQrCodeAuthentication,
);
}
break;
case InternalLinkTypeRequestManagedBot.constructor:
if (requestManagedBot != null) {
return requestManagedBot.call(
this as InternalLinkTypeRequestManagedBot,
);
}
break;
case InternalLinkTypeRestorePurchases.constructor:
if (restorePurchases != null) {
return restorePurchases.call(
this as InternalLinkTypeRestorePurchases,
);
}
break;
case InternalLinkTypeSavedMessages.constructor:
if (savedMessages != null) {
return savedMessages.call(this as InternalLinkTypeSavedMessages);
}
break;
case InternalLinkTypeSearch.constructor:
if (search != null) {
return search.call(this as InternalLinkTypeSearch);
}
break;
case InternalLinkTypeSettings.constructor:
if (settings != null) {
return settings.call(this as InternalLinkTypeSettings);
}
break;
case InternalLinkTypeStarPurchase.constructor:
if (starPurchase != null) {
return starPurchase.call(this as InternalLinkTypeStarPurchase);
}
break;
case InternalLinkTypeStickerSet.constructor:
if (stickerSet != null) {
return stickerSet.call(this as InternalLinkTypeStickerSet);
}
break;
case InternalLinkTypeStory.constructor:
if (story != null) {
return story.call(this as InternalLinkTypeStory);
}
break;
case InternalLinkTypeStoryAlbum.constructor:
if (storyAlbum != null) {
return storyAlbum.call(this as InternalLinkTypeStoryAlbum);
}
break;
case InternalLinkTypeTextCompositionStyle.constructor:
if (textCompositionStyle != null) {
return textCompositionStyle.call(
this as InternalLinkTypeTextCompositionStyle,
);
}
break;
case InternalLinkTypeTheme.constructor:
if (theme != null) {
return theme.call(this as InternalLinkTypeTheme);
}
break;
case InternalLinkTypeUnknownDeepLink.constructor:
if (unknownDeepLink != null) {
return unknownDeepLink.call(this as InternalLinkTypeUnknownDeepLink);
}
break;
case InternalLinkTypeUpgradedGift.constructor:
if (upgradedGift != null) {
return upgradedGift.call(this as InternalLinkTypeUpgradedGift);
}
break;
case InternalLinkTypeUserPhoneNumber.constructor:
if (userPhoneNumber != null) {
return userPhoneNumber.call(this as InternalLinkTypeUserPhoneNumber);
}
break;
case InternalLinkTypeUserToken.constructor:
if (userToken != null) {
return userToken.call(this as InternalLinkTypeUserToken);
}
break;
case InternalLinkTypeVideoChat.constructor:
if (videoChat != null) {
return videoChat.call(this as InternalLinkTypeVideoChat);
}
break;
case InternalLinkTypeWebApp.constructor:
if (webApp != null) {
return webApp.call(this as InternalLinkTypeWebApp);
}
break;
}
return orElse.call();
}