concatWithSingleList method

List<T> concatWithSingleList(
  1. Iterable<T> iterable
)

Return a list concatenates the output of the current list and another iterable

Implementation

List<T> concatWithSingleList(Iterable<T> iterable) {
  if (isEmptyOrNull || iterable.isEmptyOrNull) return [];

  return <T>[...this.orEmpty(), ...iterable];
}