startsWithIgnoreCase method

bool startsWithIgnoreCase(
  1. String other
)

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

Implementation

bool startsWithIgnoreCase(String other) {
  return toLowerCase().startsWith(other.toLowerCase());
}