Copies list.
list
List? copyList(List? list) { if (list == null) return null; return List.from(list); }