getDiseaseById method

Future<Disease?> getDiseaseById(
  1. String id,
  2. String languageCode
)

Retrieves a disease by its unique identifier.

id The unique identifier of the disease. languageCode The language code for localized content. Returns the disease if found, null otherwise.

Implementation

Future<Disease?> getDiseaseById(String id, String languageCode) async {
  return await _databaseService.getDiseaseById(id, languageCode);
}