isCorrectCase method

bool isCorrectCase(
  1. String text
)

Implementation

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