navigateRemoveUntil static method

dynamic navigateRemoveUntil(
  1. BuildContext context,
  2. Widget page
)

Implementation

static navigateRemoveUntil(BuildContext context, Widget page) {
  Navigator.pushAndRemoveUntil(
    context,
    PageRouteBuilder(pageBuilder: (context, _, __) => page),
    (Route<dynamic> r) => false,
  );
}