copy method

BufferCell copy()

Creates a copy of this cell with the same character and colors.

Returns a new BufferCell instance with identical char, fg, and bg values to the current cell.

Implementation

BufferCell copy() => BufferCell(char: char, fg: fg, bg: bg);