Sort constructor

Sort({
  1. required Iterable<Logic> toSort,
  2. bool isAscending = true,
  3. String name = 'unnamed_module',
})

Sort algorithm MUST have List of toSort, direction of sort isAscending and a name for the sorting module.

Implementation

Sort({required this.toSort, this.isAscending = true, super.name});