import 'package:cookbook/domain/entities/auth_user.dart'; import 'package:cookbook/domain/entities/failures/failure.dart'; import 'package:cookbook/domain/repo/auth_repository.dart'; import 'package:either_dart/either.dart'; class GetLoggedUserUsecase { final AuthRepository _repository; GetLoggedUserUsecase(this._repository); Future> execute() async { return await _repository.getLoggedUser(); } }