append<T> static method

List<T> append<T>(
  1. Iterable<T>? some,
  2. T item
)

Implementation

static List<T> append<T>(Iterable<T>? some, T item) {
  final list = [];
  if (some != null) list.addAll(some);
  if (item != null) list.add(item);
  return List.unmodifiable(compact(list));
}