Whether this string ends with other.
other
For example:
const string = 'Dart is open source'; print(string.endsWith('urce')); // true
bool? endsWith(String other) => value?.endsWith(other);