compareIgnoreCase method

bool compareIgnoreCase(
  1. String other, {
  2. bool ignoreCase = true,
})

string compare ignoreCase

Implementation

bool compareIgnoreCase(String other,{bool ignoreCase = true}){
  if(ignoreCase){
    return toLowerCase().compareTo(other.toLowerCase())==0;
  }
  return compareTo(other)==0;
}