isBetween method

bool isBetween(
  1. num start,
  2. num end
)

Check if number is between a range

Implementation

bool isBetween(num start, num end) {
  return this >= start && this <= end;
}