Returns the record stored under key and deleted it from the log.
List<T> remove(String key) => _data.remove(key) ?? <T>[];