Buffer.filled constructor
Creates a buffer with every cell initialized to cell.
Implementation
factory Buffer.filled(Rect area, Cell cell) {
final size = area.width * area.height;
return Buffer(area, List.generate(size, (_) {
final c = Cell();
c.setSymbol(cell.symbol);
c.fg = cell.fg;
c.bg = cell.bg;
c.fgRgb = cell.fgRgb;
c.bgRgb = cell.bgRgb;
c.fgIndexed = cell.fgIndexed;
c.bgIndexed = cell.bgIndexed;
c.modifier = cell.modifier;
c.diffOption = cell.diffOption;
return c;
}));
}