indexOf method
Implementation
int indexOf(int? value) {
if (value == null) return -1;
if (items != null) return items!.indexOf(value);
if (value < begin || value > end) return -1;
return (value - begin) ~/ (this.jump == 0 ? 1 : this.jump);
}