equalsIgnoreCase method

bool equalsIgnoreCase(
  1. String? other
)

Compares the current string with another string for equality, ignoring case differences.

Implementation

bool equalsIgnoreCase(String? other) =>
    (this == null && other == null) ||
    (this != null &&
        other != null &&
        this!.toLowerCase() == other.toLowerCase());