findSlotFromTile method

DraggableSlot<T>? findSlotFromTile(
  1. DraggableWidget<T>? widget
)

Implementation

DraggableSlot<T>? findSlotFromTile(DraggableWidget<T>? widget) {
  if (widget == null) return null;
  final index = _relationship.values.toList().indexOf(widget);
  if (index > -1) return _relationship.keys.elementAt(index);
}