Buffer.fromRows constructor

Buffer.fromRows(
  1. Iterable<Iterable<Cell>> rows
)

Creates a new grid from the given rows.

Each row must have the same length.

Implementation

factory Buffer.fromRows(Iterable<Iterable<Cell>> rows) {
  return Buffer._(Grid.fromRows(rows));
}