Checks if a string ends with a substring.
print(endsWith('lo', 'hello')); // Outputs: true
bool endsWith(String searchString, String s, [int? position]) => s.endsWith(searchString);