toFinishUntil static method

dynamic toFinishUntil(
  1. BuildContext context,
  2. String routeName,
  3. String untilRouteName, {
  4. dynamic arguments,
})

Navigate screens and until screen remove

Implementation

static toFinishUntil(
    BuildContext context, String routeName, String untilRouteName,
    {dynamic arguments}) {
  Navigator.pushNamedAndRemoveUntil(
      context, routeName, ModalRoute.withName(untilRouteName),
      arguments: arguments);
}