bool equal(String str, {bool ignoreCase = true}) { if (ignoreCase) { return this?.toLowerCase() == str.toLowerCase(); } return this == str; }