cloneList<E> method
Return a deep-cloned List.
When doTypedClone is true the returned list performs typed cloning of elements.
Typed cloning will throw UnsupportedTypedCloneException
if a nested Map is encountered.
Preserves UnmodifiableListView by wrapping the cloned list.
Implementation
@override
List<E> cloneList<E>(List<E> source) {
if (_nestIndex > nestLimit) {
throw LimitExceededException('depth', _nestIndex);
}
_nestIndex++;
try {
return super.cloneList<E>(source);
} finally {
_nestIndex--;
}
}