equals method

bool equals(
  1. String? other
)

Returns true if string equals without ignoring case

Implementation

bool equals(String? other) {
  if (this == null || other == null) return false;
  return this == other;
}