when<T> method

T when<T>({
  1. required T noSupport(),
  2. required T success(),
})

Implementation

T when<T>({
  required T Function() noSupport,
  required T Function() success,
}) =>
    {
      IdServerUnbindResult.noSupport: noSupport,
      IdServerUnbindResult.success: success,
    }[this]!();