AleFachini
Committed by GitHub

GetuUtils has Uppercase/Capital letter?

Added this simple function to provide better password validation using GetUtils
With this you can validate a password field combining:
GetUtils.isnumericOnly(string) & GetUtils.isAlphabetOnly(string) & GetUtils.isLengthGreaterOrEqual(string);

Thank you very much.
@@ -95,6 +95,9 @@ class GetUtils { @@ -95,6 +95,9 @@ class GetUtils {
95 /// Checks if string consist only Alphabet. (No Whitespace) 95 /// Checks if string consist only Alphabet. (No Whitespace)
96 static bool isAlphabetOnly(String s) => hasMatch(s, r'^[a-zA-Z]+$'); 96 static bool isAlphabetOnly(String s) => hasMatch(s, r'^[a-zA-Z]+$');
97 97
  98 + /// Checks if string contains at least one Capital Letter
  99 + static bool hasCapitalletter(String s) => hasMatch(s, r'[A-Z]');
  100 +
98 /// Checks if string is boolean. 101 /// Checks if string is boolean.
99 static bool isBool(String value) { 102 static bool isBool(String value) {
100 if (isNull(value)) { 103 if (isNull(value)) {