remove method

  1. @override
bool remove(
  1. Record record
)
override

Remove a record from the index

Implementation

@override
bool remove(Record record) {
  var key = keyType.getKey(record);
  var removed = false;
  if (_data.containsKey(key)) {
    _data[key]!.remove(record);
    removed = true;
  }

  // If row is the last in the set, remove the set itself
  if (_data[key] != null && _data[key]!.isEmpty) _data.remove(key);

  return removed;
}