notFoundInList function Null safety

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

Implementation

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