Hex class
Hex - any one of the sixteen hexadecimal digits 0 to F.
For example, the values "1", "123", "1B", and "CAFEBABE" are valid; "AG", "12@", "123.34", "9.99" are invalid.
Blank field — null or empty — is a valid input.
Constructors
- Hex.new({String? mal})
-
Constrains the input data to hexadecimal digits
0-9A-F
. - Hex.len(int len, {String? mal, String? diff})
-
Constrains the input data to the hexadecimal digits
0-9A–F
and its length (number of digits) tolen
hex-digits. - Hex.max(int max, {String? mal, String? long})
-
Constrains the input data to the hex-digits
0-9A–F
and its length (number of hex-digits) to a maximum ofmax
hex-digits. - Hex.min(int min, {String? mal, String? short})
-
Constrains the input data to the hex-digits
0-9A–F
and its length (number of hex-digits) to a minimum ofmin
hex-digits. - Hex.range(int min, int max, {String? mal, String? short, String? long})
-
Constrains the input data to the hex-digits
0-9A–F
and its length (number of hex-digits) within the rangemin–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
is either null or 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