FFLocalStateFieldUpdate constructor

FFLocalStateFieldUpdate({
  1. FFIdentifier? fieldIdentifier,
  2. FFValue? setValue,
  3. FFLocalStateClearValue? clearValue,
  4. FFValue? increment,
  5. FFValue? addToList,
  6. FFValue? removeFromList,
  7. FFValue? removeFromListAtIndex,
  8. FFLocalStateUpdateListItem? updateItemAtIndex,
  9. FFLocalStateDataStructUpdate? dataStructUpdate,
  10. FFLocalStateInsertListItem? insertAtIndex,
  11. FFLocalStateToggle? toggle,
})

Implementation

factory FFLocalStateFieldUpdate({
  FFIdentifier? fieldIdentifier,
  FFValue? setValue,
  FFLocalStateClearValue? clearValue,
  FFValue? increment,
  FFValue? addToList,
  FFValue? removeFromList,
  FFValue? removeFromListAtIndex,
  FFLocalStateUpdateListItem? updateItemAtIndex,
  FFLocalStateDataStructUpdate? dataStructUpdate,
  FFLocalStateInsertListItem? insertAtIndex,
  FFLocalStateToggle? toggle,
}) {
  final result = create();
  if (fieldIdentifier != null) result.fieldIdentifier = fieldIdentifier;
  if (setValue != null) result.setValue = setValue;
  if (clearValue != null) result.clearValue = clearValue;
  if (increment != null) result.increment = increment;
  if (addToList != null) result.addToList = addToList;
  if (removeFromList != null) result.removeFromList = removeFromList;
  if (removeFromListAtIndex != null)
    result.removeFromListAtIndex = removeFromListAtIndex;
  if (updateItemAtIndex != null) result.updateItemAtIndex = updateItemAtIndex;
  if (dataStructUpdate != null) result.dataStructUpdate = dataStructUpdate;
  if (insertAtIndex != null) result.insertAtIndex = insertAtIndex;
  if (toggle != null) result.toggle = toggle;
  return result;
}