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