startsWith method

bool? startsWith(
  1. Pattern pattern, [
  2. int index = 0
])

Returns true if this string starts with a match of pattern.

Implementation

bool? startsWith(Pattern pattern, [int index = 0]) {
  return value?.startsWith(pattern, index);
}