startsWith function
Checks if a string starts with a substring.
print(startsWith('hel', 'hello')); // Outputs: true
Implementation
bool startsWith(String searchString, String s, [int? position]) =>
s.startsWith(searchString, position ?? 0);
Checks if a string starts with a substring.
print(startsWith('hel', 'hello')); // Outputs: true
bool startsWith(String searchString, String s, [int? position]) =>
s.startsWith(searchString, position ?? 0);