ZapValidator extension
Extension providing common validation methods for ZapInterface.
- on
Methods
-
isValidEmail(
String value) → bool -
Available on ZapInterface, provided by the ZapValidator extension
Validates if the givenvalueis a valid email address. -
isValidPassword(
String value, {int minLength = 6, bool requireUppercase = false, bool requireDigit = false, bool requireSpecialChar = false}) → bool -
Available on ZapInterface, provided by the ZapValidator extension
Validates if the givenvalueis a valid password. Optionally, you can setminLength,requireUppercase,requireDigit, andrequireSpecialCharto enforce specific password criteria. -
isValidPhoneNumber(
String value) → bool -
Available on ZapInterface, provided by the ZapValidator extension
Validates if the givenvalueis a valid 10-digit phone number. -
isValidUrl(
String value, {List< String> validSchemes = const ['http', 'https']}) → bool -
Available on ZapInterface, provided by the ZapValidator extension
Validates if the givenvalueis a valid URL with specifiedvalidSchemes.