removeBuiltChild method
Removes child of key from lastBuiltChildren after it was disposed.
Only removed if child is still the last built widget of key. When
the child moved to another index, it is already built again there.
Implementation
void removeBuiltChild({required ValueKey key, required Widget child}) {
if (identical(lastBuiltChildren[key.value], child)) {
lastBuiltChildren.remove(key.value);
}
}