toListOfList method

List<List<T>> toListOfList()

Returns a modifiable view of the matrix as a List<List<T>> object.

Implementation

List<List<T>> toListOfList() => List<List<T>>.generate(
      rowCount,
      (row) => List<T>.generate(columnCount, (col) => this(row, col)),
      growable: false,
    );