isMixedCase method Null safety

bool isMixedCase(
  1. String input
)

Implementation

bool isMixedCase(String input) {
  return input.toLowerCase() != input && input.toUpperCase() != input;
}