endsWithIgnoreCase method

bool endsWithIgnoreCase(
  1. String other
)

Returns true if the string ends with the given other string, ignoring case.

Implementation

bool endsWithIgnoreCase(String other) {
  return toLowerCase().endsWith(other.toLowerCase());
}