operator + method

list operator +(
  1. dynamic other
)

Implementation

list operator +(dynamic other) {
  var newList = list(toList());
  if (other is list)
    newList.addRange(other);
  else
    newList.add(other);

  return newList;
}