StringChecks extension
- on
Properties
- isNotBlank → bool
-
Returns
true
if string isn't blankno setter - isNullOrEmpty → bool
-
Returns
true
if string is null or emptyno setter
Methods
-
anyChar(
bool predicate(String element)) → bool -
Returns the
true
if any symbol matching the givenpredicate
-
isAlphabetOnly(
) → bool -
Returns
true
if string contains only alphabet symbols -
isEmailValid(
{String? regex}) → bool -
Returns
true
if email matches the pattern -
isPasswordLengthLonger(
{int length = 8}) → bool -
Returns
true
if password is longer than specified length