forEachChangedField method
Receives an iterator function and invokes it once per each field such that ItemUpdate.isValueChanged
is true.
Note that if the Subscription mode of the involved Subscription is COMMAND, then changed fields are meant as relative to the previous update for the same key. On such tables if a DELETE command is received, all the fields, excluding the key field, will be iterated as changed, with null value. All of this is also true on tables that have the two-level behavior enabled, but in case of DELETE commands second-level fields will not be iterated.
Note that the iterator is executed before this method returns.
callback
iterator Function instance that will be called once per each field changed on the last update received from the server.
Implementation
void forEachChangedField(void Function(String? fieldName, int fieldPosition, String? value) callback) {
_forEachChangedField(allowInterop(callback));
}