contains function

bool contains(
  1. String str,
  2. dynamic seed
)

check if the string contains the seed

Implementation

bool contains(String str, seed) {
  return str.indexOf(seed.toString()) >= 0;
}