StringRule class final
Validates string length and pattern constraints.
- Inheritance
-
- Object
- SchemaRule
- StringRule
Constructors
- StringRule({int? minLength, int? maxLength, RegExp? pattern})
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
dynamic value, String path) → List< SchemaViolation> -
Validates
valueatpathand returns every violation found.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited