endsWith method

bool endsWith(
  1. String other
)

Whether this string ends with other.

For example:

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

Implementation

bool endsWith(String other) => value.endsWith(other);