cacheable property
Whether this layer should be cached as a ui.Picture.
true→ layer is recorded once and replayed on subsequent frames. Set tofalse(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 => true;