isBetween method

bool isBetween(
  1. num min,
  2. num max
)

Implementation

bool isBetween(num min, num max) {
  if (this == null) return false;

  return this! >= min && this! <= max;
}