debugLayer property

OffsetLayer debugLayer

In debug mode, the compositing layer that this render object uses to repaint.

This getter is intended for debugging purposes only. In release builds, it always returns null. In debug builds, it returns the layer even if the layer is dirty.

For production code, consider layer.

Implementation

OffsetLayer get debugLayer {
  OffsetLayer result;
  assert(() {
    result = _layer;
    return true;
  }());
  return result;
}