map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult channelChats(),
- required TResult chat(),
- required TResult groupChats(),
- required TResult privateChats(),
Implementation
TResult map<TResult extends Object?>({
required TResult Function(AutosaveSettingsScopeChannelChats value)
channelChats,
required TResult Function(AutosaveSettingsScopeChat value) chat,
required TResult Function(AutosaveSettingsScopeGroupChats value) groupChats,
required TResult Function(AutosaveSettingsScopePrivateChats value)
privateChats,
}) {
switch (getConstructor()) {
case AutosaveSettingsScopeChannelChats.constructor:
return channelChats.call(this as AutosaveSettingsScopeChannelChats);
case AutosaveSettingsScopeChat.constructor:
return chat.call(this as AutosaveSettingsScopeChat);
case AutosaveSettingsScopeGroupChats.constructor:
return groupChats.call(this as AutosaveSettingsScopeGroupChats);
case AutosaveSettingsScopePrivateChats.constructor:
return privateChats.call(this as AutosaveSettingsScopePrivateChats);
}
throw StateError('not handled type Generator');
}