equalsIgnoreCase function

bool equalsIgnoreCase(
  1. String? a,
  2. String? b
)

Returns true if a and b are equal after being converted to lower case, or are both null.

Implementation

bool equalsIgnoreCase(String? a, String? b) =>
    (a == null && b == null) ||
    (a != null && b != null && a.toLowerCase() == b.toLowerCase());