isBetween method

bool isBetween(
  1. num from,
  2. num to
)

Implementation

bool isBetween(num from, num to) {
  return from < this && this < to;
}