canUpdate abstract method

bool canUpdate(
  1. ChildSlot oldComponent
)
override

Whether this slot renders into the same DOM nodes as oldComponent.

A slot can't be updated with one that renders into different nodes, so give such slots different keys.

Implementation

bool canUpdate(ChildSlot oldComponent);