navigate static method

void navigate(
  1. BuildContext context,
  2. SplashRoute splashRoute
)

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,
  );
}