validatePresentationOrder static method

void validatePresentationOrder(
  1. List<CafModuleType> presentationOrder
)

Implementation

static void validatePresentationOrder(List<CafModuleType> presentationOrder) {
  if (presentationOrder.isEmpty) {
    throw ArgumentError('Presentation order cannot be empty');
  }

  _checkConflictingModules(presentationOrder);
  _checkDuplicateModules(presentationOrder);
}