TF-56 Create object LoadingState

This commit is contained in:
dab246
2021-09-17 18:00:22 +07:00
committed by Dat H. Pham
parent 926f249897
commit 430f21bdaf
9 changed files with 108 additions and 103 deletions
@@ -12,7 +12,7 @@ class GetUserProfileInteractor {
Stream<Either<Failure, Success>> execute() async* {
try {
yield Right<Failure, Success>(UIState.loading);
yield Right<Failure, Success>(LoadingState());
final userProfile = await credentialRepository.getUserProfile();
yield Right(GetUserProfileSuccess(userProfile));
} catch (exception) {