map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult bots(
- TopChatCategoryBots value
- required TResult calls(
- TopChatCategoryCalls value
- required TResult channels(
- TopChatCategoryChannels value
- required TResult forwardChats(),
- required TResult groups(
- TopChatCategoryGroups value
- required TResult guestBots(
- TopChatCategoryGuestBots value
- required TResult inlineBots(),
- required TResult users(
- TopChatCategoryUsers value
- required TResult webAppBots(),
Implementation
TResult map<TResult extends Object?>({
required TResult Function(TopChatCategoryBots value) bots,
required TResult Function(TopChatCategoryCalls value) calls,
required TResult Function(TopChatCategoryChannels value) channels,
required TResult Function(TopChatCategoryForwardChats value) forwardChats,
required TResult Function(TopChatCategoryGroups value) groups,
required TResult Function(TopChatCategoryGuestBots value) guestBots,
required TResult Function(TopChatCategoryInlineBots value) inlineBots,
required TResult Function(TopChatCategoryUsers value) users,
required TResult Function(TopChatCategoryWebAppBots value) webAppBots,
}) {
switch (getConstructor()) {
case TopChatCategoryBots.constructor:
return bots.call(this as TopChatCategoryBots);
case TopChatCategoryCalls.constructor:
return calls.call(this as TopChatCategoryCalls);
case TopChatCategoryChannels.constructor:
return channels.call(this as TopChatCategoryChannels);
case TopChatCategoryForwardChats.constructor:
return forwardChats.call(this as TopChatCategoryForwardChats);
case TopChatCategoryGroups.constructor:
return groups.call(this as TopChatCategoryGroups);
case TopChatCategoryGuestBots.constructor:
return guestBots.call(this as TopChatCategoryGuestBots);
case TopChatCategoryInlineBots.constructor:
return inlineBots.call(this as TopChatCategoryInlineBots);
case TopChatCategoryUsers.constructor:
return users.call(this as TopChatCategoryUsers);
case TopChatCategoryWebAppBots.constructor:
return webAppBots.call(this as TopChatCategoryWebAppBots);
}
throw StateError('not handled type Generator');
}