IstFormValidator class

A class that provides form validation methods.

Constructors

IstFormValidator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

customValidate(String value, {List<FormValidatorRule> rules = const []}) String?
For custom validation, pass a list of FormValidatorRules. Returns the error message if any of the rules fail, otherwise null. Example:
validateEmail(String? value, {String emptyMessage = ValidationMessages.requiredField, String invalidMessage = ValidationMessages.invalidEmail}) String?
Validates if the value is not empty and matches the email pattern.