getTitle method
Implementation
String getTitle(dynamic menuItem) {
if (menuItem is MPCategory) {
return menuItem.value;
} else if (menuItem is MPLocation) {
return menuItem.name;
}
return "";
}
String getTitle(dynamic menuItem) {
if (menuItem is MPCategory) {
return menuItem.value;
} else if (menuItem is MPLocation) {
return menuItem.name;
}
return "";
}