deepCloneList function

List deepCloneList(
  1. Iterable _in
)

This assumes that the data coming in is a map, list, or primitive (json).

Implementation

List<dynamic> deepCloneList(final Iterable<dynamic> _in) {
  return [..._in.map((item) => deepClone(item))];
}