draggable method

WidgetElement draggable(
  1. bool boolean, {
  2. bool? removeIf,
})
inherited

The draggable global attribute attribute that indicates whether the element can be dragged, either with native browser behavior or the HTML Drag and Drop API. Read more...

Implementation

WidgetElement draggable(bool boolean, {bool? removeIf}) {
  if (removeIf != true && node.attrs != null) {
    VirtualAttr attr = VirtualAttr('draggable', boolean.toString());
    node.attrs!.add(attr);
  }
  return this;
}