onPressedOnLastPage property

VoidCallback? onPressedOnLastPage
final

Invoked when the user taps on the bottom button on the last page. Must not be null to be active.

E.g. use Navigator.pop to close the onboarding after navigating to it or use setState with changed state boolean to re-render the parent widget and conditionally display other widget instead of the onboarding.

Implementation

final VoidCallback? onPressedOnLastPage;