indexOf method

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]) =>
    value?.indexOf(pattern, start);