cancelDialog method Null safety

dynamic cancelDialog(
  1. BuildContext context
)

Implementation

cancelDialog(BuildContext context) {
  Navigator.of(context).pop();
}