insertAll method

Future insertAll(
  1. List<T> records
)

Implementation

Future insertAll(List<T> records) async {
  await _collection.insertAll(records.map((e) => toJson.call(e)).toList());
}