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