flatten method

List<V> flatten()

Implementation

List<V> flatten() {
  return [...this.expand((i) => i)];
}