containsObject method

bool containsObject(
  1. T object
)

Implementation

bool containsObject(T object) {
  for (var item in this) {
    if (object == item) {
      return true;
    }
  }
  return false;
}