I have the following AlertDialog.
AlertDialog
showDialog( context: context, child: new AlertDialog( title: const Text(\"Lo
Navigator.pop(_)
worked for me, but the Flutter Team's gallery contains an example using:
Navigator.of(context, rootNavigator: true).pop()
which also works, and I am tempted to follow their lead.