isCurrentElementDragged method

bool isCurrentElementDragged({
  1. required int listIndex,
  2. required int itemIndex,
})

Implementation

bool isCurrentElementDragged(
    {required int listIndex, required int itemIndex}) {
  var prov = ref.read(ProviderList.boardProvider);

  return prov.board.isElementDragged &&
      prov.draggedItemState!.itemIndex == itemIndex &&
      prov.draggedItemState!.listIndex == listIndex;
}