ReqHex class
Convenient validator for required hexadecimal fields.
Constructors
- ReqHex({String? blank, String? mal})
- Constrains the input data to hexadecimal digits.
- ReqHex.len(int len, {String? blank, String? mal, String? diff})
-
Constrains the input data to hexadecimal digits and its length to
len
hex-digits. - ReqHex.max(int max, {String? blank, String? mal, String? long})
-
Constrains the input data to hexadecimal digits and its length to a
maximum of
max
hex-digits. - ReqHex.min(int min, {String? blank, String? mal, String? short})
-
Constrains the input data to the hexadecimal digits and its length to a
minimum of
min
hex-digits. - ReqHex.range(int min, int max, {String? blank, String? mal, String? short, String? long})
-
Constrains the input data to the hexadecimal digits and its length 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(
String? input) → String? -
Valid - returns null - if
input
consists of hex-digits. -
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