flatten method

Vec<T> flatten()

Implementation

@pragma('vm:prefer-inline')
Vec<T> flatten() {
  return expand((element) => element).toList();
}