findFirst method Null safety

CharacterRange? findFirst(
  1. Characters characters
)

Finds the first occurrence of characters in this string.

Returns a CharacterRange containing the first occurrence of characters in this string. Returns null if there is no such occurrence.

Implementation

CharacterRange? findFirst(Characters characters);