go method
- BuildContext context,
- String path
override
Navigates to a route by replacing the current one.
path is the destination route as a string.
Implementation
@override
Future<void> go(BuildContext context, String path) async {
await Navigator.pushReplacementNamed(context, path);
}