onNext property
Custom action to execute when "Next" button is pressed.
If provided, this is called before advancing to the next step. This allows you to perform custom actions like navigation, animations, or state updates before moving to the next step.
onNext: () {
Navigator.push(context, MaterialPageRoute(builder: (_) => NextScreen()));
}
Implementation
final VoidCallback? onNext;