endsWith method

  1. @override
bool endsWith(
  1. String other
)
override

Whether this string ends with other.

For example:

const string = 'Dart is open source';
print(string.endsWith('urce')); // true

Implementation

@override
bool endsWith(String other) => _str.endsWith(other);