getIndexOf method
Implementation
int getIndexOf(T item) {
int Function(T a, T b)? _comparator = comparator();
if (_comparator == null) {
return -1;
}
for (var i = 0; i < dataLength; i++) {
var b = getItem(i);
if (_comparator(item, b) == 0) {
return i;
}
}
return -1;
}