findIndex method

int findIndex({
  1. required List list,
  2. required Map target,
})

Implementation

int findIndex({required List list, required Map target}) {
  return list.indexOf(target);
}