I understand if we want to pass data from pageA to pageB, we can use this
Navigator.pushNamed(context, PageB.ROUTE,arguments:pageAData);
If we wa