lowerAssociativeSelectionValue function
Prefers a candidate with a lower selection value.
Implementation
Logic lowerAssociativeSelectionValue(
{required Logic candidateValue,
required Logic selectedValue,
required int candidateIndex,
required Logic selectedIndex,
required String name}) =>
candidateValue
.lt(selectedValue)
.named('${name}_prefer_lower_$candidateIndex');