addZone method

int addZone({
  1. dynamic onDragOver(
    1. MouseEvent e
    )?,
  2. dynamic onDrop(
    1. MouseEvent e
    )?,
})

Implementation

int addZone(
    {Function(html.MouseEvent e)? onDragOver,
    Function(html.MouseEvent e)? onDrop}) {
  if (onDragOver != null) {
    _dragFunctions[currentZoneId] = onDragOver;
  }

  if (onDrop != null) {
    _dropFunctions[currentZoneId] = onDrop;
  }

  return currentZoneId++;
}