compareIgnoreCase function

int compareIgnoreCase(
  1. String a,
  2. 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());