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