call method
- UpdateTaskParams params
override
Implementation
@override
Future<Either<Failure, TaskEntity>> call(UpdateTaskParams params) async {
try {
return await repository.updateTask(params.taskData, params.id);
} catch (e) {
return Left(ServerFailure(message: e.toString()));
}
}