I have two pages FirstPage and SecondPage. I am passing the argument or value from FirstPage to SecondPage. Is it possible in the SecondPage to get the value adjusted in the ("${widget.col}") ? I tried this way but could not get that value.
FirstPage
onTap : {
Navigator.push(context,MaterialPageRoute(builder: (context) => SecondPage(gen: 'collection')));}
SecondPage
class SongProvider extends ChangeNotifier {
late final String col;
SongProvider({required this.col});
final _worshipColleciton = FirebaseFirestore.instance.collection("$col");