paint method

  1. @override
void paint(
  1. Canvas canvas,
  2. Size size
)
override

Draw this layer onto canvas.

Implementation

@override
void paint(Canvas canvas, Size size) {
  if (theme.backgroundColor != Colors.transparent) {
    canvas.drawRect(
      Rect.fromLTWH(0, 0, size.width, size.height),
      paintCache.fill(theme.backgroundColor),
    );
  }
  clearDirty();
}