Grid<T>.fromRows constructor

Grid<T>.fromRows(
  1. Iterable<Iterable<T>> rows
)

Creates a new grid from the given rows.

Each row must have the same length.

Implementation

factory Grid.fromRows(Iterable<Iterable<T>> rows) = ListGrid<T>.fromRows;