between method

bool between(
  1. num first,
  2. num endInclusive
)

Returns true if between first and endInclusive.

Alias for first.rangeTo(endInclusive).contains(this)

Implementation

bool between(num first, num endInclusive) =>
    first.rangeTo(endInclusive).contains(this);