onIdentityChanged method

  1. @override
void onIdentityChanged(
  1. UserId me
)
override

Handles identity changes to the provided UserId.

Implementation

@override
void onIdentityChanged(UserId me) {
  super.onIdentityChanged(me);

  if (_authService.userId.isLocal) {
    _scheduleSupport();
    opacity.value = 1;
    page.value = null;
  } else {
    switch (page.value) {
      case IntroductionStage.accountCreated ||
          IntroductionStage.accountCreating ||
          IntroductionStage.guestCreated:
        // No-op.
        break;

      default:
        dismiss();
        break;
    }
  }
}