StringValidator extension
Extension on String to provide additional validation and conversion methods.
Properties
-
isEmail
→ bool
-
Checks if the string is a valid email address.
no setter
-
isInt
→ bool
-
Checks if the string represents a valid integer.
no setter
-
isPassword
→ bool
-
Checks if the string is a valid password.
no setter
-
toBool
→ bool
-
Converts the string to a boolean value.
no setter
Methods
-
toInt({dynamic def = -1})
→ int
-
Converts the string to an integer.