cacheable property

bool get cacheable

Whether this layer should be cached as a ui.Picture.

  • true → layer is recorded once and replayed on subsequent frames. Set to false (via markDirty) to force a re-record.
  • false → layer is always drawn live (good for rapidly changing overlays like tooltips and crosshairs).

Implementation

bool get cacheable => true;