clear method

void clear()

Implementation

void clear() {
  state = [];
}