go method

  1. @override
Future<void> go(
  1. BuildContext context,
  2. 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);
}