addList method
Same as FirebaseRepository.add but will store a Iterable of given
items
and return a Iterable of DocumentReference
s.
Implementation
Future<void> addList({
required Iterable<T> items,
required String type,
DocumentReference? parent,
}) async {
final futures = items.map(
(item) => add(
item: item,
type: type,
parent: parent,
),
);
await Future.wait(futures);
}