getCharactersMatrix method

List<List<String>> getCharactersMatrix()

Returns a 2D list of characters from the buffer.

Implementation

List<List<String>> getCharactersMatrix() => bufferState
    .map((row) => row.map((cell) => cell.character).toList())
    .toList();