insertCollectionInTransaction method
Insert a collection of entries
using a transaction.
Implementation
Future<bool> insertCollectionInTransaction(List<T> entries) async {
if (entries.isEmpty) return true;
try {
await insertCollection(entries);
return true;
} catch (e) {
return false;
}
}