isInRange method

  1. @useResult
bool isInRange(
  1. num min,
  2. num max
)

Returns true if the number is between min and max inclusive. Audited: 2026-06-12 11:26 EDT

Implementation

@useResult
bool isInRange(num min, final num max) => this >= min && this <= max;