PlexValidator class

Validator utilities for form fields.

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

compose(List<String? Function(String?)> validators) String? Function(String?)
Composes multiple validators; returns first non-null error.
email({String? message}) String? Function(String?)
Returns a validator that checks email format.
maxLength(int n, {String? message}) String? Function(String?)
Returns a validator that enforces maximum length.
minLength(int n, {String? message}) String? Function(String?)
Returns a validator that enforces minimum length.
pattern(RegExp regex, {String? message}) String? Function(String?)
Returns a validator that checks against a regex pattern.
required({String? message}) String? Function(String?)
Returns a validator that requires non-empty input.