Logic to activate setItems.
setItems
typedef SetItems<T> = Future<List<T>?> Function(WriteListOperation<T>);