map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult userPrivacyRestricted(),
- required TResult userAlreadyParticipant(),
- required TResult userWasBanned(),
- required TResult success(),
Implementation
TResult map<TResult extends Object?>({
required TResult Function(
InviteGroupCallParticipantResultUserPrivacyRestricted value)
userPrivacyRestricted,
required TResult Function(
InviteGroupCallParticipantResultUserAlreadyParticipant value)
userAlreadyParticipant,
required TResult Function(
InviteGroupCallParticipantResultUserWasBanned value)
userWasBanned,
required TResult Function(InviteGroupCallParticipantResultSuccess value)
success,
}) {
switch (getConstructor()) {
case InviteGroupCallParticipantResultUserPrivacyRestricted.constructor:
return userPrivacyRestricted.call(
this as InviteGroupCallParticipantResultUserPrivacyRestricted);
case InviteGroupCallParticipantResultUserAlreadyParticipant.constructor:
return userAlreadyParticipant.call(
this as InviteGroupCallParticipantResultUserAlreadyParticipant);
case InviteGroupCallParticipantResultUserWasBanned.constructor:
return userWasBanned
.call(this as InviteGroupCallParticipantResultUserWasBanned);
case InviteGroupCallParticipantResultSuccess.constructor:
return success.call(this as InviteGroupCallParticipantResultSuccess);
}
throw StateError('not handled type Generator');
}