deleteChild method

void deleteChild(
  1. RenderViewModel? parentViewModel,
  2. RenderViewModel? childViewModel, {
  3. int childIndex = -1,
})

Implementation

void deleteChild(RenderViewModel? parentViewModel, RenderViewModel? childViewModel,
    {int childIndex = -1}) {
  if (parentViewModel is GroupViewModel && childViewModel != null) {
    deleteChildRecursive(parentViewModel, childViewModel, childIndex);
  }
}