background method

void background({
  1. required Color color,
})

Implementation

void background({
  required Color color,
}) {
  _backgroundColor = color;

  final paint = Paint()..color = color;
  _paintingContext.canvas.drawRect(Offset.zero & _paintingContext.size, paint);

  _paintingContext.markHasUnappliedCanvasCommands();
}