startsWith method
Check if a string starts with a substring.
Implementation
bool startsWith(String string) {
if (this == null) {
throw ArgumentError('string: $this');
}
if (this!.isEmpty) {
return false;
}
return this!.startsWith(string);
}