navigateToPage method
Implementation
Future<void> navigateToPage(BuildContext context, Widget page) async {
Navigator.of(context).push(
MaterialPageRoute(builder: (context) => page),
);
}
Future<void> navigateToPage(BuildContext context, Widget page) async {
Navigator.of(context).push(
MaterialPageRoute(builder: (context) => page),
);
}