endsWith method Null safety

bool endsWith(
  1. String other
)

Whether this string ends with other.

For example:

'Dart'.endsWith('t'); // true

Implementation

bool endsWith(String other);