goto static method
The function to navigate to a specific route. You specify the route using a type NOT a string route name or a MaterialPageRoute.
Implementation
static void goto(
BuildContext context,
Type? route, {
Route Function(BuildContext, Widget)? transition,
RouterParam? params,
}) {
var service = Momentum.service<MomentumRouter>(context);
service._goto(
context,
route,
transition: transition,
params: params,
);
}