openPatientExamDrawer function
Implementation
void openPatientExamDrawer({
required BuildContext context,
required ReviewSystems system,
}) {
context
.findAncestorWidgetOfExactType<PatientExam>()
?.selectedDrawer
.add(system.reviewDefinition.drawerType);
context
.findAncestorWidgetOfExactType<PatientExam>()
?.scaffoldKey
.currentState
?.openEndDrawer();
}