endsWith method
Returns true if the string ends with other.
Implementation
bool endsWith(Object other, {bool caseSensitive = true}) {
final v = caseSensitive ? value : value.toLowerCase();
final t = caseSensitive ? _resolve(other) : _resolve(other).toLowerCase();
return v.endsWith(t);
}