pushNamed static method

Future pushNamed(
  1. BuildContext context,
  2. String routeName, {
  3. Object? arguments,
  4. bool hide = true,
})

跳转页面

Implementation

static Future<dynamic> pushNamed(BuildContext context, String routeName,
    {Object? arguments, bool hide = true}) {
  hideKeyboard(context, hide: hide);
  return Navigator.pushNamed(context, routeName, arguments: arguments);
}