The onUpdate acts callback function to trigger when the widget updates.
final VoidCallback? onUpdate;