getGame method
Implementation
String getGame(String item) {
if (item.contains('p001')) {
return 'Fortnite';
} else if (item.contains('p002')) {
return 'Escape the Bear';
} else if (item.contains('p003')) {
return 'Escape the Bear';
} else if (item.contains('p004')) {
return 'Woolen Warfare';
} else if (item.contains('p005')) {
return 'Woolen Warfare';
} else if (item.contains('p006')) {
return 'Woolen Warfare';
} else if (item.contains('p007')) {
return 'Woolen Warfare';
} else if (item.contains('p009')) {
return 'Woolen Warfare';
} else if (item.contains('p009')) {
return 'Escape the Bear';
} else if (item.contains('p010')) {
// return 'Escape the Bear';
return "SKIWEAR MINI GAME";
} else if (item.contains('p008')) {
return 'SKIWEAR';
} else if (item.contains('P012')) {
return 'FORTNITE';
} else {
return '';
}
}