phase static method

void phase(
  1. OnboardingPhase actual,
  2. OnboardingPhase expected
)

Asserts the terminal onboarding phase equals expected.

Implementation

static void phase(OnboardingPhase actual, OnboardingPhase expected) {
  if (actual != expected) {
    throw AuthAssertionError('expected phase $expected but got $actual');
  }
}