indexOf method Null safety

int indexOf(
  1. Pattern pattern,
  2. [int start = 0]
)

Returns the position of the first match of pattern in this string

Implementation

int indexOf(Pattern pattern, [int start = 0]) {
  return value.indexOf(pattern, start);
}