13 lines
308 B
Dart
13 lines
308 B
Dart
import '../entities/user_profile.dart';
|
|
import '../repositories/profile_repository.dart';
|
|
|
|
class UpdateProfileUseCase {
|
|
final UserProfileRepository repository;
|
|
|
|
UpdateProfileUseCase(this.repository);
|
|
|
|
Future<UserProfile?> call(UserProfile profile) {
|
|
return repository.updateProfile(profile);
|
|
}
|
|
}
|