lockConfig static method

void lockConfig()

In your app initialization, call lockConfig if you want to lock the configuration, so that no one can change it anymore.

These are setters which you can use to configure and then lock:

  1. ImmutableCollection.autoFlush
  2. ImmutableCollection.disallowUnsafeConstructors
  3. IList.defaultConfig
  4. IList.flushFactor
  5. ISet.defaultConfig
  6. ISet.flushFactor
  7. IMap.defaultConfig
  8. IMap.flushFactor
  9. IMapOfSets.defaultConfig

Implementation

static void lockConfig() => _isConfigLocked = true;