makeFirst method

void makeFirst(
  1. Widget screen, {
  2. bool transparent = false,
  3. bool isCupertino = false,
})

Replace the all route of the navigator by pushing the given route and then disposing all the previous route.

Implementation

void makeFirst(
  Widget screen, {
  bool transparent = false,
  bool isCupertino = false,
}) {
  popToFirst();
  replace(
    screen,
    transparent: transparent,
    isCupertino: isCupertino,
  );
}