cacheable property

  1. @override
bool get cacheable
override

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

@override
bool get cacheable => false;