Called when trying to update the data. Must return the new data, or throw and error when it's failed to update.
error
@protected Future<T> onUpdate(T newData) async { return newData; }