equals static method
check strings are equals or not
Implementation
static bool equals(String str1, String str2, {bool ignoreCase = true}) {
if (ignoreCase) {
return (str1.toLowerCase() == str2.toLowerCase());
} else {
return (str1 == str2);
}
}