Array<T>.from constructor

Array<T>.from(
  1. Iterable<T> elements
)

Constructs an array from existing collections efficiently blocking bounds dynamically.

Implementation

Array.from(Iterable<T> elements) : _data = List.of(elements, growable: false);