insertCollectionInTransaction method

Future<bool> insertCollectionInTransaction(
  1. List<T> entries
)

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;
  }
}