paint method

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

paint API.

Implementation

@override
void paint(Context context, PwOffset offset) {
  final BoxDecoration? deco = decoration;
  if (deco != null) {
    // Imported via pw_box callers; decoration paint is in pw_paint.
    _paintDeco(context, offset, size, deco);
  }
  child?.paint(
    context,
    offset.translate(childOffset.dx, childOffset.dy),
  );
  onPaint?.call(context, offset);
}