new project stable version
This commit is contained in:
15
lib/domain/usecase/logout_usecase.dart
Normal file
15
lib/domain/usecase/logout_usecase.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
import 'package:be_happy/domain/repositories/pin_repository.dart';
|
||||
|
||||
import '../repositories/auth_repository.dart';
|
||||
|
||||
class LogoutUseCase {
|
||||
final AuthRepository _authRepository;
|
||||
final PinRepository _pinRepository;
|
||||
|
||||
LogoutUseCase(this._authRepository, this._pinRepository);
|
||||
|
||||
Future<void> call() async {
|
||||
await _authRepository.logout();
|
||||
await _pinRepository.removePin();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user