equalsIgnoreCase function
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());