goHome method
void
goHome(})
Implementation
void goHome(
String route, {
String path = "",
Object? extra,
Map<String, dynamic> queryParams = const <String, dynamic>{},
}) {
if (path.isNotEmpty || queryParams.isNotEmpty) {
Router.neglect(context, () {
context.goNamed(
route,
extra: extra,
pathParameters: {"name": path},
queryParameters: queryParams,
);
});
} else {
Router.neglect(context, () {
context.go(route, extra: extra);
});
}
}