ReqLen class

Convenient validator for required fields with length (number of items) constraints.

It is the composite of Req and Len validators.

Constructors

ReqLen(int len, {String? blank, String? diff})
Constrains the length (number of items).
ReqLen.max(int max, {String? blank, String? long})
Constrains the length or number of data items to a maximum amount.
ReqLen.min(int min, {String? blank, String? short})
Constrains the length (number of items) to a minimum amount.
ReqLen.range(int min, int max, {String? blank, String? short, String? long})
Constrains the length (number of items) within the range min–max.

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

call(Object? input) String?
Valid - returns null - if input is neither null nor empty, and if its length is in a valid range.
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