i have this function that creates the menu item but it has no functionality, i want is so that i can send it to what page i want when declaring it. How can i do this?
final List<MenuItem> options = [
MenuItem(Icons.home, 'Home'),
MenuItem(Icons.person, 'Profile'),
MenuItem(Icons.web_asset, 'Website'),
MenuItem(Icons.settings, 'Settings'),
];
children: options.map((item) {
return ListTile(
onTap: () {
Navigator.push(
context,
MaterialPageRoute(builder: (context) => HERE I WANT TO PUT A CUSTOM PAGE FOR EACH ONE()),
);
},
leading: Icon(
item.icon,
color: Colors.white,
size: 35,
),
title: Text(
item.title,
style: TextStyle(
fontSize: 14,
fontWeight: FontWeight.bold,
color: Colors.white),
),
);
}).to