shouldShowDiseaseRiskButton property

bool get shouldShowDiseaseRiskButton

Determines if the disease risk button should be shown.

Returns:

  • true: If there are related diseases for the current classification
  • false: Otherwise

Implementation

bool get shouldShowDiseaseRiskButton {
  return _result != null && _result!.relatedDiseases.isNotEmpty;
}