remove method

  1. @override
Future<void> remove(
  1. String name,
  2. String key
)

Removes the partition entry by key.

  • name: The partition name
  • key: The partition key

Implementation

@override
Future<void> remove(String name, String key) {
  final box = _adapter.box<O>(name);

  if (box != null) {
    box.remove(key.hashCode);
  }

  return Future.value();
}