cloneList static method

List<DropdownItem> cloneList(
  1. List<DropdownItem> list
)

generate clone list of dropdown item

Implementation

static List<DropdownItem> cloneList(List<DropdownItem> list) {
  List<DropdownItem> cloneList = [];
  for (DropdownItem obj in list) {
    cloneList.add(obj);
  }
  return cloneList;
}