changeClass method

dynamic changeClass(
  1. RenderBox renderBox, {
  2. required String className,
  3. dynamic onAdd()?,
})

Implementation

changeClass(final RenderBox renderBox, {required String className, Function()? onAdd}) {
  if(_className != className) DropInterface().removeDrop(controller: this);
  _className = className;
  DropInterface().createDrop(renderBox: renderBox, controller: this);
  DropInterface().dragAndDrop(controller: this, onAdd: onAdd);
}