bothHaveValue function

bool bothHaveValue({
  1. required double one,
  2. required double two,
  3. required double value,
})

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;
}