CountedCloner constructor

CountedCloner({
  1. required bool doTypedClone,
  2. int sizeLimit = SIZE_LIMIT_DEFAULT,
  3. int nestLimit = NEST_LIMIT_DEFAULT,
})

Constructs a CountedCloner with optional size and nesting limits. Limits the total number of cloned values and the maximum recursion depth.

see also BaseCloner

Throws LimitExceededException if limits are exceeded during cloning.

Implementation

CountedCloner({
  required bool doTypedClone,
  int sizeLimit = SIZE_LIMIT_DEFAULT,
  int nestLimit = NEST_LIMIT_DEFAULT,
}) : this._(sizeLimit, nestLimit, doTypedClone);