@@ -33,7 +33,7 @@ Future<T?> showConfirmationDialog<T>({
3333 bool shrinkWrap = true ,
3434 bool fullyCapitalizedForMaterial = true ,
3535 bool canPop = true ,
36- PopInvokedCallback ? onPopInvoked ,
36+ PopInvokedWithResultCallback < T > ? onPopInvokedWithResult ,
3737 AdaptiveDialogBuilder ? builder,
3838 RouteSettings ? routeSettings,
3939 bool toggleable = true ,
@@ -66,7 +66,7 @@ Future<T?> showConfirmationDialog<T>({
6666 shrinkWrap: shrinkWrap,
6767 fullyCapitalized: fullyCapitalizedForMaterial,
6868 canPop: canPop,
69- onPopInvoked : onPopInvoked ,
69+ onPopInvokedWithResult : onPopInvokedWithResult ,
7070 toggleable: toggleable,
7171 );
7272 return builder == null ? dialog : builder (context, dialog);
@@ -81,7 +81,7 @@ Future<T?> showConfirmationDialog<T>({
8181 style: style,
8282 useRootNavigator: useRootNavigator,
8383 canPop: canPop,
84- onPopInvoked : onPopInvoked ,
84+ onPopInvokedWithResult : onPopInvokedWithResult ,
8585 builder: builder,
8686 routeSettings: routeSettings,
8787 );
@@ -101,7 +101,7 @@ class _ConfirmationMaterialDialog<T> extends StatefulWidget {
101101 required this .shrinkWrap,
102102 required this .fullyCapitalized,
103103 required this .canPop,
104- required this .onPopInvoked ,
104+ required this .onPopInvokedWithResult ,
105105 required this .toggleable,
106106 });
107107
@@ -116,7 +116,7 @@ class _ConfirmationMaterialDialog<T> extends StatefulWidget {
116116 final bool shrinkWrap;
117117 final bool fullyCapitalized;
118118 final bool canPop;
119- final PopInvokedCallback ? onPopInvoked ;
119+ final PopInvokedWithResultCallback < T > ? onPopInvokedWithResult ;
120120 final bool toggleable;
121121
122122 @override
@@ -144,6 +144,7 @@ class _ConfirmationMaterialDialogState<T>
144144 final message = widget.message;
145145 return PopScope (
146146 canPop: widget.canPop,
147+ onPopInvokedWithResult: widget.onPopInvokedWithResult,
147148 child: Dialog (
148149 child: Column (
149150 mainAxisSize: MainAxisSize .min,
0 commit comments