Skip to content

Commit

Permalink
refactor(deriv_auth):add reset state functionality to DerivResetPassC…
Browse files Browse the repository at this point in the history
…ubit (#423)
  • Loading branch information
sahani-deriv authored Jan 29, 2024
1 parent 95797f8 commit 99e8eb1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@ class DerivResetPassCubit extends Cubit<DerivResetPassState>

@override
Stream<DerivResetPassState> get output => stream;

@override
void resetState() {
emit(const DerivResetPassInitialState());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ abstract class DerivResetPasswordIO {

/// Deriv reset pass output.
Stream<DerivResetPassState> get output;

/// Resets [DerivResetPassState] to [DerivResetPassInitialState].
void resetState();
}

0 comments on commit 99e8eb1

Please sign in to comment.