bool isCorrectCase(String text) { if (isUpperCase) { return text.toUpperCase() == text; } else { return text.toLowerCase() == text; } }