|
|
|
|
@ -23,6 +23,8 @@ import '../shared_soap_widgets/expandable_SOAP_widget.dart';
|
|
|
|
|
import 'add_examination_page.dart';
|
|
|
|
|
import 'examination_item_card.dart';
|
|
|
|
|
import 'objective_call_back.dart';
|
|
|
|
|
import 'package:collection/collection.dart';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UpdateObjectivePage extends StatefulWidget {
|
|
|
|
|
final Function changePageViewIndex;
|
|
|
|
|
@ -320,7 +322,7 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage>
|
|
|
|
|
setState(() {
|
|
|
|
|
{
|
|
|
|
|
mySelectedExaminationLocal.forEach((element) {
|
|
|
|
|
if ((mySelectedExamination.singleWhere(
|
|
|
|
|
if ((mySelectedExamination.firstWhereOrNull(
|
|
|
|
|
(it) =>
|
|
|
|
|
it.selectedExamination!.id ==
|
|
|
|
|
element.selectedExamination!.id)) ==
|
|
|
|
|
@ -332,7 +334,7 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage>
|
|
|
|
|
/// remove items.
|
|
|
|
|
List<MySelectedExamination> removedList = [];
|
|
|
|
|
mySelectedExamination.forEach((element) {
|
|
|
|
|
if ((mySelectedExaminationLocal.singleWhere(
|
|
|
|
|
if ((mySelectedExaminationLocal.firstWhereOrNull(
|
|
|
|
|
(it) =>
|
|
|
|
|
it.selectedExamination!.id ==
|
|
|
|
|
element.selectedExamination!.id,
|
|
|
|
|
|