endsWith abstract method Null safety

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);