exactlyOneHasValue function
Returns true
if exactly one of the passed values one
, two
hase the passed value
,
false
otherwise.
Implementation
bool exactlyOneHasValue({
required double one,
required double two,
required double value,
}) {
return (math.min(one, two) != math.max(one, two) && (one == value || two == value));
}