bd6bb66279
* app updated * readme updated * rename base folder * update chatty's readme Co-authored-by: Neevash Ramdial <mail@neevash.dev>
14 lines
413 B
Dart
14 lines
413 B
Dart
import 'package:stream_chatter/data/auth_repository.dart';
|
|
import 'package:stream_chatter/data/stream_api_repository.dart';
|
|
|
|
class LogoutUseCase {
|
|
LogoutUseCase(this.streamApiRepository, this.authRepository);
|
|
final StreamApiRepository streamApiRepository;
|
|
final AuthRepository authRepository;
|
|
|
|
Future<void> logout() async {
|
|
await streamApiRepository.logout();
|
|
await authRepository.logout();
|
|
}
|
|
}
|