Disease constructor

Disease({
  1. required String id,
  2. required String name,
  3. required String description,
  4. required String symptoms,
  5. required String treatment,
  6. required String prevention,
  7. required List<String> vectors,
  8. required String prevalence,
  9. required String imageUrl,
})

Creates a new Disease instance.

All parameters are required to ensure complete disease information is available for educational and informational purposes.

Implementation

Disease({
  required this.id,
  required this.name,
  required this.description,
  required this.symptoms,
  required this.treatment,
  required this.prevention,
  required this.vectors,
  required this.prevalence,
  required this.imageUrl,
}) : assert(id.isNotEmpty, 'Disease ID cannot be empty'),
     assert(name.isNotEmpty, 'Disease name cannot be empty');