pushReplacement static method

void pushReplacement(
  1. BuildContext context,
  2. Widget page, {
  3. Widget? current,
})

Implementation

static void pushReplacement(BuildContext context, Widget page,
    {Widget? current}) {
  Navigator.pushReplacement(context, _getPT(current: current, page: page));
}