equals method

bool equals(
  1. String other, {
  2. bool ignoreCase = false,
})

Implementation

bool equals(String other, {bool ignoreCase = false}) {
  return ignoreCase ? toLowerCase() == other.toLowerCase() : this == other;
}