map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult bot(
- AffiliateTypeBot value
- required TResult channel(
- AffiliateTypeChannel value
- required TResult currentUser(
- AffiliateTypeCurrentUser value
Implementation
TResult map<TResult extends Object?>({
required TResult Function(AffiliateTypeBot value) bot,
required TResult Function(AffiliateTypeChannel value) channel,
required TResult Function(AffiliateTypeCurrentUser value) currentUser,
}) {
switch (getConstructor()) {
case AffiliateTypeBot.constructor:
return bot.call(this as AffiliateTypeBot);
case AffiliateTypeChannel.constructor:
return channel.call(this as AffiliateTypeChannel);
case AffiliateTypeCurrentUser.constructor:
return currentUser.call(this as AffiliateTypeCurrentUser);
}
throw StateError('not handled type Generator');
}