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