indexOfItem method

int indexOfItem(
  1. dynamic item
)

Gets the index associated with the data

Implementation

int indexOfItem(dynamic item) {
  var controller = controllerOfItem(item);
  return (controller != null) ? controller.index : min;
}