putAll<T> method

  1. @override
Future<void> putAll<T>(
  1. String collection,
  2. Map<String, T> entries
)
override

Stores every entry of entries in collection.

Implementation

@override
Future<void> putAll<T>(
  String collection,
  Map<String, T> entries,
) async {
  _ensureInitialized();
  await guardWrite('Failed to put ${entries.length} values in "$collection"',
      () async {
    final box = await _openBox(collection);
    await box.putAll(entries);
  });
}