UpdateFunc<T> typedef
UpdateFunc<T> =
T? Function(T? oldData)
Update function used to update the data in a query.
Must return the new data.
Implementation
typedef UpdateFunc<T> = T? Function(T? oldData);