contains method

bool contains(
  1. String pattern, [
  2. int start = 0
])

Checks if this string view contains the pattern.

Implementation

bool contains(String pattern, [int start = 0]) {
  return indexOf(pattern, start) != -1;
}