Cell constructor

Cell({
  1. String? symbol,
  2. Color fg = Color.reset,
  3. Color bg = Color.reset,
  4. RgbColor? fgRgb,
  5. RgbColor? bgRgb,
  6. IndexedColor? fgIndexed,
  7. IndexedColor? bgIndexed,
  8. Modifier? modifier,
  9. CellDiffOption diffOption = CellDiffOption.none,
})

Implementation

Cell({
  String? symbol,
  this.fg = Color.reset,
  this.bg = Color.reset,
  this.fgRgb,
  this.bgRgb,
  this.fgIndexed,
  this.bgIndexed,
  Modifier? modifier,
  this.diffOption = CellDiffOption.none,
})  : symbol = symbol ?? ' ',
      modifier = modifier ?? Modifier.none;