pushReplaceTagPage static method

Future pushReplaceTagPage(
  1. BuildContext context,
  2. Widget page, {
  3. String? name,
  4. Object? arguments,
  5. bool noAnimation = true,
  6. bool hide = true,
})

Implementation

static Future<dynamic> pushReplaceTagPage(BuildContext context, Widget page,
    {String? name,
    Object? arguments,
    bool noAnimation = true,
    bool hide = true}) {
  hideKeyboard(context, hide: hide);
  return Navigator.of(context).pushReplacement(noAnimation
      ? NoAnimRouter(page, name: name, arguments: arguments)
      : MaterialPageRoute(
          settings: RouteSettings(name: name, arguments: arguments),
          builder: (_) => page));
}