animation

How the overlay is drawn at each frame of its run, or null to draw it the same way throughout.

It is compared, so a caller holds one instance and reuses it rather than rebuilding it. The built-in helpers compare by value and survive a rebuild, while a lambda compares by identity and a rebuilt composition misses its thumbnail cache.