ReparentCommand constructor

ReparentCommand({
  1. required MessageBus bus,
  2. required WidgetData widget,
  3. WidgetData? newParent,
  4. Cell? newCell,
  5. int newIndex = -1,
})

Implementation

ReparentCommand({
  required this.bus,
  required this.widget,
  this.newParent,
  this.newCell,
  this.newIndex = -1
}) : oldParent = widget.parent, oldCell = widget.cell;