@@ -514,11 +502,13 @@ extension GetNavigation on GetInterface {
if(pageisGetPageBuilder){
returnpage;
}elseif(pageisWidget){
Get.log(
'''WARNING, consider using: "Get.$method(() => Page())" instead of "Get.$method(Page())".
Get.log('''WARNING, consider using: "Get.$method(() => Page())" instead of "Get.$method(Page())".
Using a widget function instead of a widget fully guarantees that the widget and its controllers will be removed from memory when they are no longer used.
''');
return()=>page;
}elseif(pageisString){
throw'''Unexpected String,
use toNamed() instead''';
}else{
throw'''Unexpected format,
you can only use widgets and widget functions here''';
...
...
@@ -759,12 +749,10 @@ you can only use widgets and widget functions here''';
}
/// Returns true if a Snackbar, Dialog or BottomSheet is currently OPEN