expand<T> static method

List<T> expand<T>(
  1. Iterable<T>? some,
  2. Iterable<T>? more
)

Implementation

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