StrStartsWith
System · system operation · implicitly imported
Checks whether a String starts with another String, optionally from a given index.
Parameters
String findIn— The String to check.String toFind— The prefix to look for.Int startIndex = 0— The index infindInwheretoFindis expected to start.Bool ignoreCase = false— Whentrue, the comparison ignores case.
Returns
Bool — true if toFind occurs in findIn at startIndex.
Errors
A runtime type error if findIn or toFind is not a String, startIndex is not an Int, or ignoreCase is not a Bool.