contains method Null safety

bool contains(
  1. T element
)

Checks if the specified element is contained in this collection.

Implementation

bool contains(T element);