Signature for the callback within a RefPaint widget that paints a UI element using a PaintRef.
typedef RefPaintCallback = void Function(PaintRef ref);