remove method

  1. @override
Future<Change<Record>?> remove(
  1. String key
)
override

Removes a given key from the Source.

Implementation

@override
Future<Change<Record>?> remove(String key) async {
  var existing = map[key];
  if (existing == null) {
    return null;
  }
  map.remove(key);
  return Removed(key, existing);
}