contains method

bool contains(
  1. num n
)

Checks if the given value n is within this range.

Implementation

bool contains(num n) => n.within(from, to);