contains method

bool contains(
  1. Pattern other, [
  2. int startIndex = 0
])

Does it contain other

Implementation

bool contains(Pattern other, [int startIndex = 0]) =>
    toString().contains(other);