StrFind
System · system operation · implicitly imported
Returns the index of the first occurrence of a String in another String.
Parameters
String findIn— The String to search in.String toFind— The String to search for.Int startIndex = 0— The index to start the search from.Bool ignoreCase = false— Whentrue, the search ignores case.
Returns
Int — The index of the first occurrence of toFind at or after startIndex, or -1 if it is not found.
Errors
A runtime type error if findIn or toFind is not a String, startIndex is not an Int, or ignoreCase is not a Bool.