Key.fromParent constructor
Implementation
factory Key.fromParent(String kind, int id, {Key? parent}) {
var partition = Partition.DEFAULT;
var elements = <KeyElement>[];
if (parent != null) {
partition = parent.partition;
elements.addAll(parent.elements);
}
elements.add(KeyElement(kind, id));
return Key(elements, partition: partition);
}