contains method

bool contains(
  1. Object? obj
)

Detect whether this range contains an element.

that The other range to check whether it's contained in this range.

Returns true if this range contains single value, false otherwise.

Implementation

bool contains(Object? obj) => _contains(obj);