contains method

bool contains(
  1. Object? position
)
inherited

Verifies if a given position is contained within the range

Implementation

bool contains(Object? position) {
  if (position is! int) {
    return false;
  }

  return start <= position && end > position;
}