foundInList function Null safety

bool foundInList(
  1. List list,
  2. dynamic e
)

Implementation

bool foundInList(List list, dynamic e) =>
    list.indexWhere((l) => DeepCollectionEquality().equals(e, l)) != -1;