im trying to store a value from onTap() into a variable to use it in another page
onTap: () {
getCourseName(doc["Course name"]);
Navigator.push(
context,
PageTransition(
type: PageTransitionType.rightToLeft,
child: XDSections(),
),
);
},
this code was used in page Courses I want to use this value in a way to use it page Section
how do i do that ?