replace method

void replace(
  1. BuildContext context, {
  2. Object? arguments,
})

Implementation

void replace(BuildContext context, {Object? arguments}) {
  Navigator.of(context).pushReplacementNamed(name, arguments: arguments);
}