getResultWithExistingMatrix method

Future<List<WeightedDecisionResult>> getResultWithExistingMatrix({
  1. required List<WeightedDecisionMatrix> sawMatrix,
  2. bool useIsolate = false,
})

CALCULATE RESULT WITH EXISTING MATRIX

Implementation

Future<List<WeightedDecisionResult>> getResultWithExistingMatrix({
  required List<WeightedDecisionMatrix> sawMatrix,
  bool useIsolate = false,
}) async {
  try {
    final usecase =
        SawCalculateResultWithExistingMatrixUsecase(_sawRepository);

    final result = await usecase.execute(
      sawMatrix: sawMatrix,
      useIsolate: useIsolate,
    );

    return result;
  } catch (e) {
    rethrow;
  }
}