paintingContext property

PaintingContext paintingContext

The current painting context, should only be accessed from paint methods.

Implementation

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