maybeWhen<T> method

T maybeWhen<T>({
  1. T? noSupport()?,
  2. T? success()?,
  3. 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();