|
|
|
|
@ -23,7 +23,7 @@ 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;
|
|
|
|
|
final Function changeLoadingState;
|
|
|
|
|
@ -320,7 +320,7 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage>
|
|
|
|
|
setState(() {
|
|
|
|
|
{
|
|
|
|
|
mySelectedExaminationLocal.forEach((element) {
|
|
|
|
|
if ((mySelectedExamination.singleWhere(
|
|
|
|
|
if ((mySelectedExamination.singleWhereOrNull(
|
|
|
|
|
(it) =>
|
|
|
|
|
it.selectedExamination!.id ==
|
|
|
|
|
element.selectedExamination!.id)) ==
|
|
|
|
|
@ -332,7 +332,7 @@ class _UpdateObjectivePageState extends State<UpdateObjectivePage>
|
|
|
|
|
/// remove items.
|
|
|
|
|
List<MySelectedExamination> removedList = [];
|
|
|
|
|
mySelectedExamination.forEach((element) {
|
|
|
|
|
if ((mySelectedExaminationLocal.singleWhere(
|
|
|
|
|
if ((mySelectedExaminationLocal.singleWhereOrNull(
|
|
|
|
|
(it) =>
|
|
|
|
|
it.selectedExamination!.id ==
|
|
|
|
|
element.selectedExamination!.id,
|
|
|
|
|
|