Grid<T>.fromCells constructor

Grid<T>.fromCells(
  1. Iterable<T> cells,
  2. {required int width}
)

Creates a new grid from the given cells and width.

The cells must have a length that is a multiple of the width.

Implementation

factory Grid.fromCells(
  Iterable<T> cells, {
  required int width,
}) = ListGrid<T>.fromCells;