compareIgnoreCase function

int compareIgnoreCase (String a, String b)

Compares a and b after converting to lower case.

Both a and b must not be null.

Implementation

int compareIgnoreCase(String a, String b) =>
    a.toLowerCase().compareTo(b.toLowerCase());