copyWith method

Cell copyWith(
  1. {String? symbol,
  2. Style? style}
)

Returns a copy of this cell with the given symbol and style.

If no arguments are provided, the current cell is returned.

Implementation

Cell copyWith({String? symbol, Style? style}) {
  return Cell(
    symbol ?? this.symbol,
    style ?? this.style,
  );
}