injectedChild property
Widget?
get
injectedChild
Implementation
Widget? get injectedChild => _injectedChild;
set
injectedChild
(Widget? value)
Implementation
set injectedChild(Widget? value) {
final previous = _injectedChild;
if (value is ReactterNestedWidget &&
previous is ReactterNestedWidget &&
Widget.canUpdate(value.wrappedWidget, previous.wrappedWidget)) {
// no need to rebuild the wrapped widget just for a _NestedHook.
// The widget doesn't matter here, only its Element.
return;
}
if (previous != value) {
_injectedChild = value;
visitChildren((e) => e.markNeedsBuild());
}
}