The custom painting callback function.
final void Function(Canvas canvas, Size size, double value) painter;