pushNamed<T extends Object?> method

Future<PageRouteResult<T?>> pushNamed<T extends Object?>({
  1. required String name,
  2. dynamic arguments,
  3. TransitionAnimationConfig? config,
})

添加命名路由 name 路由名 arguments 参数 config 转场动画配置

Implementation

Future<PageRouteResult<T?>> pushNamed<T extends Object?>({
  required String name,
  dynamic arguments,
  TransitionAnimationConfig? config,
}) {
  return _delegate.push<T>(
    name: name,
    arguments: arguments,
    transitionBuilder: config == null
        ? null
        : (RouteSettings settings, WidgetBuilder builder) =>
            AnimationTranslateTransition(
              builder: builder,
              config: config,
              settings: settings,
            ),
  );
}