TF-56 Create object LoadingState
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user