Callback invoked during paint with the current canvas and size.
typedef PaintCallback = void Function(Canvas canvas, Size size);