set method

void set(
  1. int index
)

Sets the state to true at specified index.

Implementation

void set(int index) {
  this[index] = true;
}