replace method
- BuildContext context,
- String path
override
Replaces the current route with a new one.
path is the new route.
Implementation
@override
Future<void> replace(BuildContext context, String path) async {
Navigator.pop(context);
await Navigator.pushNamed(context, path);
}