FFLocalStateFieldUpdate constructor
FFLocalStateFieldUpdate({
- FFIdentifier? fieldIdentifier,
- FFValue? setValue,
- FFLocalStateClearValue? clearValue,
- FFValue? increment,
- FFValue? addToList,
- FFValue? removeFromList,
- FFValue? removeFromListAtIndex,
- FFLocalStateUpdateListItem? updateItemAtIndex,
- FFLocalStateDataStructUpdate? dataStructUpdate,
- FFLocalStateInsertListItem? insertAtIndex,
- 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;
}