contains method

bool contains(
  1. T value
)

Checks if the given value is contained within this set.

Implementation

bool contains(T value) => bits & this[value] != 0;