The position of id (narrowest 0), or -1.
id
int indexOf(String? id) => list.indexWhere((b) => b.id == id);