contains method Null safety

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

Returns true if this string contains a match of other:

Implementation

bool contains(Pattern other, [int startIndex = 0]) {
  return value.contains(other, startIndex);
}