width method

int width()

The buffer width in cells.

Implementation

int width() => lines.isEmpty ? 0 : lines[0].length;