map<TResult extends Object?> method
TResult
map<TResult extends Object?>({
- required TResult appleId(),
- required TResult code(),
- required TResult googleId(),
Implementation
TResult map<TResult extends Object?>({
required TResult Function(EmailAddressAuthenticationAppleId value) appleId,
required TResult Function(EmailAddressAuthenticationCode value) code,
required TResult Function(EmailAddressAuthenticationGoogleId value)
googleId,
}) {
switch (getConstructor()) {
case EmailAddressAuthenticationAppleId.constructor:
return appleId.call(this as EmailAddressAuthenticationAppleId);
case EmailAddressAuthenticationCode.constructor:
return code.call(this as EmailAddressAuthenticationCode);
case EmailAddressAuthenticationGoogleId.constructor:
return googleId.call(this as EmailAddressAuthenticationGoogleId);
}
throw StateError('not handled type Generator');
}