popToFirstPage static method

Future popToFirstPage(
  1. BuildContext context
)

Implementation

static Future popToFirstPage(BuildContext context) async {
  Navigator.popUntil(context, (Route<dynamic> route) => route.isFirst);
}