bool endsWith(
String other
)

Returns true if this string ends with other. For example:

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

Source

/**
 * Returns true if this string ends with [other]. For example:
 *
 *     'Dart'.endsWith('t'); // true
 */
bool endsWith(String other);