pushReplacementDialog<T> method
- BuildContext context,
- Widget dialog
override
Replaces the current route with a dialog and waits for a result.
Implementation
@override
Future<T?> pushReplacementDialog<T>(BuildContext context, Widget dialog) {
Navigator.pop(context);
return showDialog<T>(context: context, builder: (_) => dialog);
}