contains method

bool contains(
  1. T item
)

Checks if given item is in stack.

Implementation

bool contains(T item) => _stack.contains(item);