copyList function

List? copyList(
  1. List? list
)

Copies list.

Implementation

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