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) PlatformTools().removeDiv(controller: this);
  _className = className;
  PlatformTools().createDiv(renderBox: renderBox, controller: this);
  PlatformTools().dragAndDrop(controller: this, onAdd: onAdd);
}