getComments method
- String taskId
override
Implementation
@override
Future<Either<Failure, List<Comment>>> getComments(String taskId) async {
try {
final comments = await remoteDataSource.getComments(taskId);
return Right(comments.map((t) => t.toEntity()).toList());
} catch (e) {
return Left(ServerFailure(message: e.toString()));
}
}