foundInList function

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

Implementation

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