cloneArray function

List cloneArray(
  1. List array
)

Implementation

List<dynamic> cloneArray(List<dynamic> array) {
  // ignore: unnecessary_type_check
  return (array is List) ? array.sublist(0) : <dynamic>[];
}