assignAll method

  1. @override
Future<void> assignAll(
  1. Map<TKey, T> newValues
)
inherited

Clears the box then sets the keys and values provided in newValues.

Implementation

@override
Future<void> assignAll(Map<TKey, TVal> newValues) async {
  await dataBox.clear();
  await dataBox.putAll(newValues);
}