addAutoIdentified method
Convenience method that combines autoIdentify and add.
If updateObjectWithId is provided, the object is updated with the
generated ID.
If not provided, the object remains unchanged.
Implementation
@override
Future<T> addAutoIdentified(T object, {T Function(T object, String id)? updateObjectWithId}) async {
final autoIdentifiedObject = autoIdentify(object, updateObjectWithId: updateObjectWithId);
return add(autoIdentifiedObject);
}