maxCachedUsers method Null safety

LDConfigBuilder maxCachedUsers(
  1. int maxCachedUsers

Sets how many users to store the flag values for in on-device storage.

A negative value indicates that the SDK should store the flags for every user it is configured for, never removing the stored values for the least recently used users when the count exceed maxCachedUsers.

The currently configured user is not considered part of this limit.

The default value of this configuration option is 5.


LDConfigBuilder maxCachedUsers(int maxCachedUsers) {
  this._maxCachedUsers = maxCachedUsers < 0 ? -1 : maxCachedUsers;
  return this;