RenderCanvasPaint constructor

RenderCanvasPaint({
  1. required CustomPainter painter,
  2. required Size preferredSize,
})

Implementation

RenderCanvasPaint({required CustomPainter painter, required Size preferredSize})
    : super(
        painter: painter,
        foregroundPainter: null, // Ignore foreground painter
        preferredSize: preferredSize,
      );