screen method

GoRoute screen(
  1. dynamic path, {
  2. List<GoRoute> routes = const [],
})

Implementation

GoRoute screen(path, {List<GoRoute> routes = const []}) {
  if (buildConfig.isHubbleSDK && hubbleConfig().showHubbleLogoAtBottom) {
    return CustomMaterialPage.goRoute(
      name: name,
      path: path,
      builder: (context, state) {
        return PoweredByHubble.atBottom(
          context,
          child: _screenBuilder().call(
            context,
            state,
          ),
        );
      },
      routes: routes,
    );
  }

  if (PlatformUtils.isWeb) {
    return CustomMaterialPage.goRoute(
      name: name,
      path: path,
      builder: (context, state) {
        final child = _screenBuilder().call(
          context,
          state,
        );
        return child;
      },
      routes: routes,
    );
  }

  return CustomMaterialPage.goRoute(
    name: name,
    path: path,
    builder: _screenBuilder(),
    routes: routes,
  );
}