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 given value is 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 given value is a valid password. Optionally, you can set minLength, requireUppercase, requireDigit, and requireSpecialChar to enforce specific password criteria.
isValidPhoneNumber(String value) bool

Available on ZapInterface, provided by the ZapValidator extension

Validates if the given value is 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 given value is a valid URL with specified validSchemes.