pushReplacementNamed method

dynamic pushReplacementNamed(
  1. String route, {
  2. Object? args,
})

Implementation

pushReplacementNamed(String route, {Object? args}) {
  if (route.isEmpty) return;
  Navigator.pushReplacementNamed(this, route, arguments: args);
}