getTitle method

String getTitle(
  1. String item
)

Implementation

String getTitle(String item) {
  if (item.contains('p001')) {
    return 'Ultimate Cow';
  } else if (item.contains('p002')) {
    return 'Waterproof Pants';
  } else if (item.contains('p003')) {
    return 'MVG Shirt';
  } else if (item.contains('p004')) {
    return 'Woolen Warfare';
  } else if (item.contains('p005')) {
    return 'Metaverse Group';
  } else if (item.contains('p006')) {
    return 'Hulk Labs';
  } else if (item.contains('p007')) {
    return 'Polysleep';
  } else if (item.contains('p009')) {
    return 'Polysleep Logo';
  } else if (item.contains('p010')) {
    // return 'Circle K';
    return "BALENCIAGA SKIWEAR";
  } else if (item.contains('p008')) {
    return 'Balenciaga SKIWEAR';
  } else if (item.contains('P012')) {
    return 'GCG FANNY PACK';
  } else {
    return '';
  }
}