indexOf method

int indexOf(
  1. String? id
)

The position of id (narrowest 0), or -1.

Implementation

int indexOf(String? id) => list.indexWhere((b) => b.id == id);