navigate method

dynamic navigate(
  1. BuildContext context,
  2. String route, {
  3. dynamic extra = const {},
})

Implementation

navigate(BuildContext context, String route, {extra = const {}}) {
  if (kIsWeb) {
    context.go(route, extra: extra);
  } else {
    context.push(route, extra: extra);
  }
}