combine<T> static method

List<T> combine<T>(
  1. T item,
  2. Iterable<T>? more
)

Implementation

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