maybeWhen<T> method
T
maybeWhen<T>({
- T? email()?,
- T? msisdn()?,
- required T orElse(),
Implementation
T maybeWhen<T>({
T? Function()? email,
T? Function()? msisdn,
required T Function() orElse,
}) =>
{
ThirdPartyIdentifierMedium.email: email,
ThirdPartyIdentifierMedium.msisdn: msisdn,
}[this]
?.call() ??
orElse();