deepCopyList function
Deep copies a JSON List.
Implementation
List<dynamic> deepCopyList(
List<dynamic> list, {
bool throwOnNonJsonObjects = true,
bool ignoreNonJsonObjects = false,
bool Function(String key, dynamic value)? where,
}) {
if (where == null && !throwOnNonJsonObjects && !ignoreNonJsonObjects) {
return _deepCopyListFast(list);
}
return _deepCopyListGeneral(
list,
throwOnNonJsonObjects,
ignoreNonJsonObjects,
where,
);
}