freeze method

void freeze()

Freezes the options to prevent further modifications.

After calling this method, any attempt to modify the options will throw a StateError.

Implementation

void freeze() {
  _isFrozen = true;
}