maybeMap<TResult extends Object?> method
TResult
maybeMap<TResult extends Object?>({
- TResult activeStoryCount()?,
- TResult bioLength()?,
- TResult captionLength()?,
- TResult chatFolderChosenChatCount()?,
- TResult chatFolderCount()?,
- TResult chatFolderInviteLinkCount()?,
- TResult createdPublicChatCount()?,
- TResult customTextCompositionStyleCount()?,
- TResult favoriteStickerCount()?,
- TResult messageTextLength()?,
- TResult monthlyPostedStoryCount()?,
- TResult ownedBotCount()?,
- TResult pinnedArchivedChatCount()?,
- TResult pinnedChatCount()?,
- TResult pinnedSavedMessagesTopicCount()?,
- TResult savedAnimationCount()?,
- TResult similarChatCount()?,
- TResult storyCaptionLength()?,
- TResult storySuggestedReactionAreaCount()?,
- TResult supergroupCount()?,
- TResult weeklyPostedStoryCount()?,
- required TResult orElse(),
Implementation
TResult maybeMap<TResult extends Object?>({
TResult Function(PremiumLimitTypeActiveStoryCount value)? activeStoryCount,
TResult Function(PremiumLimitTypeBioLength value)? bioLength,
TResult Function(PremiumLimitTypeCaptionLength value)? captionLength,
TResult Function(PremiumLimitTypeChatFolderChosenChatCount value)?
chatFolderChosenChatCount,
TResult Function(PremiumLimitTypeChatFolderCount value)? chatFolderCount,
TResult Function(PremiumLimitTypeChatFolderInviteLinkCount value)?
chatFolderInviteLinkCount,
TResult Function(PremiumLimitTypeCreatedPublicChatCount value)?
createdPublicChatCount,
TResult Function(PremiumLimitTypeCustomTextCompositionStyleCount value)?
customTextCompositionStyleCount,
TResult Function(PremiumLimitTypeFavoriteStickerCount value)?
favoriteStickerCount,
TResult Function(PremiumLimitTypeMessageTextLength value)?
messageTextLength,
TResult Function(PremiumLimitTypeMonthlyPostedStoryCount value)?
monthlyPostedStoryCount,
TResult Function(PremiumLimitTypeOwnedBotCount value)? ownedBotCount,
TResult Function(PremiumLimitTypePinnedArchivedChatCount value)?
pinnedArchivedChatCount,
TResult Function(PremiumLimitTypePinnedChatCount value)? pinnedChatCount,
TResult Function(PremiumLimitTypePinnedSavedMessagesTopicCount value)?
pinnedSavedMessagesTopicCount,
TResult Function(PremiumLimitTypeSavedAnimationCount value)?
savedAnimationCount,
TResult Function(PremiumLimitTypeShareableChatFolderCount value)?
shareableChatFolderCount,
TResult Function(PremiumLimitTypeSimilarChatCount value)? similarChatCount,
TResult Function(PremiumLimitTypeStoryCaptionLength value)?
storyCaptionLength,
TResult Function(PremiumLimitTypeStorySuggestedReactionAreaCount value)?
storySuggestedReactionAreaCount,
TResult Function(PremiumLimitTypeSupergroupCount value)? supergroupCount,
TResult Function(PremiumLimitTypeWeeklyPostedStoryCount value)?
weeklyPostedStoryCount,
required TResult Function() orElse,
}) {
switch (getConstructor()) {
case PremiumLimitTypeActiveStoryCount.constructor:
if (activeStoryCount != null) {
return activeStoryCount.call(
this as PremiumLimitTypeActiveStoryCount,
);
}
break;
case PremiumLimitTypeBioLength.constructor:
if (bioLength != null) {
return bioLength.call(this as PremiumLimitTypeBioLength);
}
break;
case PremiumLimitTypeCaptionLength.constructor:
if (captionLength != null) {
return captionLength.call(this as PremiumLimitTypeCaptionLength);
}
break;
case PremiumLimitTypeChatFolderChosenChatCount.constructor:
if (chatFolderChosenChatCount != null) {
return chatFolderChosenChatCount.call(
this as PremiumLimitTypeChatFolderChosenChatCount,
);
}
break;
case PremiumLimitTypeChatFolderCount.constructor:
if (chatFolderCount != null) {
return chatFolderCount.call(this as PremiumLimitTypeChatFolderCount);
}
break;
case PremiumLimitTypeChatFolderInviteLinkCount.constructor:
if (chatFolderInviteLinkCount != null) {
return chatFolderInviteLinkCount.call(
this as PremiumLimitTypeChatFolderInviteLinkCount,
);
}
break;
case PremiumLimitTypeCreatedPublicChatCount.constructor:
if (createdPublicChatCount != null) {
return createdPublicChatCount.call(
this as PremiumLimitTypeCreatedPublicChatCount,
);
}
break;
case PremiumLimitTypeCustomTextCompositionStyleCount.constructor:
if (customTextCompositionStyleCount != null) {
return customTextCompositionStyleCount.call(
this as PremiumLimitTypeCustomTextCompositionStyleCount,
);
}
break;
case PremiumLimitTypeFavoriteStickerCount.constructor:
if (favoriteStickerCount != null) {
return favoriteStickerCount.call(
this as PremiumLimitTypeFavoriteStickerCount,
);
}
break;
case PremiumLimitTypeMessageTextLength.constructor:
if (messageTextLength != null) {
return messageTextLength.call(
this as PremiumLimitTypeMessageTextLength,
);
}
break;
case PremiumLimitTypeMonthlyPostedStoryCount.constructor:
if (monthlyPostedStoryCount != null) {
return monthlyPostedStoryCount.call(
this as PremiumLimitTypeMonthlyPostedStoryCount,
);
}
break;
case PremiumLimitTypeOwnedBotCount.constructor:
if (ownedBotCount != null) {
return ownedBotCount.call(this as PremiumLimitTypeOwnedBotCount);
}
break;
case PremiumLimitTypePinnedArchivedChatCount.constructor:
if (pinnedArchivedChatCount != null) {
return pinnedArchivedChatCount.call(
this as PremiumLimitTypePinnedArchivedChatCount,
);
}
break;
case PremiumLimitTypePinnedChatCount.constructor:
if (pinnedChatCount != null) {
return pinnedChatCount.call(this as PremiumLimitTypePinnedChatCount);
}
break;
case PremiumLimitTypePinnedSavedMessagesTopicCount.constructor:
if (pinnedSavedMessagesTopicCount != null) {
return pinnedSavedMessagesTopicCount.call(
this as PremiumLimitTypePinnedSavedMessagesTopicCount,
);
}
break;
case PremiumLimitTypeSavedAnimationCount.constructor:
if (savedAnimationCount != null) {
return savedAnimationCount.call(
this as PremiumLimitTypeSavedAnimationCount,
);
}
break;
case PremiumLimitTypeShareableChatFolderCount.constructor:
if (shareableChatFolderCount != null) {
return shareableChatFolderCount.call(
this as PremiumLimitTypeShareableChatFolderCount,
);
}
break;
case PremiumLimitTypeSimilarChatCount.constructor:
if (similarChatCount != null) {
return similarChatCount.call(
this as PremiumLimitTypeSimilarChatCount,
);
}
break;
case PremiumLimitTypeStoryCaptionLength.constructor:
if (storyCaptionLength != null) {
return storyCaptionLength.call(
this as PremiumLimitTypeStoryCaptionLength,
);
}
break;
case PremiumLimitTypeStorySuggestedReactionAreaCount.constructor:
if (storySuggestedReactionAreaCount != null) {
return storySuggestedReactionAreaCount.call(
this as PremiumLimitTypeStorySuggestedReactionAreaCount,
);
}
break;
case PremiumLimitTypeSupergroupCount.constructor:
if (supergroupCount != null) {
return supergroupCount.call(this as PremiumLimitTypeSupergroupCount);
}
break;
case PremiumLimitTypeWeeklyPostedStoryCount.constructor:
if (weeklyPostedStoryCount != null) {
return weeklyPostedStoryCount.call(
this as PremiumLimitTypeWeeklyPostedStoryCount,
);
}
break;
}
return orElse.call();
}