contains method

bool contains(
  1. T x
)

Whether the stack contains x.

Implementation

bool contains(T x) => _list.contains(x);