updateThirdTableValue method

void updateThirdTableValue(
  1. ThirdTable thirdTable,
  2. Map<FieldId, List<FieldId>> thirdTableData
)

Implementation

void updateThirdTableValue(ThirdTable thirdTable, Map<FieldId, List<FieldId>> thirdTableData) {
  emit(state.copyWith(
    thirdTable: {
      ...state.thirdTable,
      thirdTable.relationsEntity.id: thirdTable,
    },
  ));
  emit(state.copyWith.thirdTableData({
    ...state.thirdTableData,
    thirdTable.relationsEntity.id: thirdTableData,
  }));
}