getComments method

  1. @override
Future<List<CommentModel>> getComments(
  1. String taskId
)
override

Implementation

@override
Future<List<CommentModel>> getComments(String taskId) async {
  try {
    return await service.getAllComments(taskId);
  } catch (e) {
    throw ServerFailure(message: 'Failed to fetch comment ${e.toString()}');
  }
}