goToNextPage static method

void goToNextPage(
  1. dynamic context,
  2. dynamic page, {
  3. Function? funCallback,
})

Implementation

static void goToNextPage(context, page, {Function? funCallback}) { Navigator.push(context,
    MaterialPageRoute(builder: (context) => page)).then((value) {
      if (funCallback != null && value != null) funCallback(value);
});}