Ahmed Fwela

added forgotten backButtonPopMode

@@ -401,12 +401,12 @@ class GetDelegate extends RouterDelegate<GetNavConfig> @@ -401,12 +401,12 @@ class GetDelegate extends RouterDelegate<GetNavConfig>
401 @override 401 @override
402 Future<bool> popRoute({ 402 Future<bool> popRoute({
403 Object? result, 403 Object? result,
404 - PopMode popMode = PopMode.History, 404 + PopMode? popMode,
405 }) async { 405 }) async {
406 //Returning false will cause the entire app to be popped. 406 //Returning false will cause the entire app to be popped.
407 final wasPopup = await handlePopupRoutes(result: result); 407 final wasPopup = await handlePopupRoutes(result: result);
408 if (wasPopup) return true; 408 if (wasPopup) return true;
409 - final _popped = await _pop(popMode); 409 + final _popped = await _pop(popMode ?? backButtonPopMode);
410 refresh(); 410 refresh();
411 if (_popped != null) { 411 if (_popped != null) {
412 //emulate the old pop with result 412 //emulate the old pop with result