PersistentMap<K, V> constructor

PersistentMap<K, V>(
  1. DBM _dbm,
  2. Uint8List _keySerializer(
    1. K
    ),
  3. K _keyDeserializer(
    1. Uint8List
    ),
  4. Uint8List _valueSerializer(
    1. V
    ),
  5. V _valueDeserializer(
    1. Uint8List
    ), {
  6. bool valueComparator(
    1. V,
    2. V
    )?,
})

Create a new PersistentMap, with the underlying dbm database, key and value serialization functions, and an optional value comparator.

Implementation

PersistentMap(this._dbm, this._keySerializer, this._keyDeserializer,
    this._valueSerializer, this._valueDeserializer,
    {bool Function(V, V)? valueComparator}) {
  if (valueComparator != null) _valueComparator = valueComparator;
}