paintOffset property

Offset get paintOffset

The offset of the current paint context.

This offset applies to to paint and paintForeground by default, you should translate by this in paintChildren if you paint to canvas.

Implementation

Offset get paintOffset {
  assert(() {
    if (debugPhase != BoxyDelegatePhase.paint) {
      throw FlutterError(
          'The $this boxy delegate attempted to access the paint offset outside of a paint method.');
    }
    return true;
  }());
  return render.paintOffset!;
}