check method

void check()

Implementation

void check() {
  if (closed) {
    throw StateError("Index file has been closed");
  }
}