navigate static method
void
navigate(
Navigates to the given splashRoute using the provided context.
Replaces the current route so the splash screen is removed from the stack.
Implementation
static void navigate(BuildContext context, SplashRoute splashRoute) {
Navigator.of(context).pushReplacementNamed(
splashRoute.route,
arguments: splashRoute.arguments,
);
}