paint method

  1. @override
void paint(
  1. Context context,
  2. PwOffset offset
)
override

paint API.

Implementation

@override
void paint(Context context, PwOffset offset) {
  if (background != null) {
    _paintDeco(context, offset, size, background!);
  }
  for (final (PwBox box, PwOffset childOffset) in children) {
    box.paint(context, offset.translate(childOffset.dx, childOffset.dy));
  }
}