Matcher startsWith(String prefixString)

Returns a matcher that matches if the match argument is a string and starts with prefixString.

Source

Matcher startsWith(String prefixString) => new _StringStartsWith(prefixString);