bool minLength(String? input, int min) { if (input == null) return false; return input.trim().length >= min; }