setContainer method Null safety

void setContainer(
  1. Container<Node?> c
)

Implementation

void setContainer(container_node.Container c) {
  if (_container == c) {
    return;
  }
  _container = c;
  markNeedsLayout();
}