isWithin static method

bool isWithin(
  1. double? value,
  2. double? start,
  3. double? end
)

Dtermines if a value is between a range

Implementation

static bool isWithin(double? value, double? start, double? end){
  assert(start != null);
  assert(end != null);

  if(value == null){
    return false;
  }
  return value >= start! && value <= end!;
}