call method

  1. @override
Future<Either<Failure, bool>> call(
  1. String params
)
override

Implementation

@override
Future<Either<Failure, bool>> call(String params) async {
  try {
    return await repository.closeTask(params);
  } catch (e) {
    return const Left(ServerFailure(message: 'Failed to close task'));
  }
}