offAllNamed static method

void offAllNamed(
  1. String routeName, {
  2. Object? arguments,
})

Remove all routes until the first one with named route

Implementation

static void offAllNamed(String routeName, {Object? arguments}) {
  navigator?.pushNamedAndRemoveUntil(routeName, (route) => false, arguments: arguments);
}