setReadonly method

void setReadonly(
  1. bool readonly
)

Implementation

void setReadonly(bool readonly) {
  if (this.readonly && !readonly) {
    throw StateError("can't alter readonly IntervalSet");
  }
  this.readonly = readonly;
}