createModule method

  1. @override
Module createModule()
override

Creates a Module instance as configured.

Implementation

@override
Module createModule() {
  final listToSort = List.generate(
    lengthOfListKnob.value,
    (index) => Logic(width: logicWidthKnob.value),
  );

  return BitonicSort(
    Logic(),
    Logic(),
    isAscending: isAscendingKnob.value,
    toSort: listToSort,
  );
}