changeStep method

void changeStep(
  1. AuthenticatorStep step, {
  2. bool reset = true,
})

Change to a new step in the authentication flow.

If reset is true, clears temporary form data including username, password, and user attributes.

Implementation

void changeStep(
  AuthenticatorStep step, {
  bool reset = true,
}) {
  _authBloc.add(AuthChangeScreen(step));

  /// Clean [ViewModel] when user manually navigates widgets
  if (reset) {
    _resetAttributes();
  }
}