getSubCategory method

List<String> getSubCategory(
  1. String name
)

Implementation

List<String> getSubCategory(String name) {
  if (name == "Camera Sensitivity") {
    return [
      '3rd Person Camera,',
      'Camera,',
      '1rd Person Camera,',
    ];
  } else if (name == "Camera") {
    return [
      'Red Dot,',
      'Holographic,',
      'Aim Assist',
    ];
  } else if (name == "Gyroscope Sensitivity") {
    return [
      'Red Dot,',
      'Holographic,',
      'Aim Assist',
    ];
  } else {
    return [
      'No Scope',
      'Red Dot,',
      'Holographic,',
      'Aim Assist',
    ];
  }
}