StringChecks extension

on

Properties

isNotBlank bool
Returns true if string isn't blank
no setter
isNullOrEmpty bool
Returns true if string is null or empty
no setter

Methods

anyChar(bool predicate(String element)) bool
Returns the true if any symbol matching the given predicate
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