hexadecimal static method

String? Function(String?) hexadecimal({
  1. String errorMessage = 'Please enter a valid hexadecimal number',
})

Ensures the string is a hexadecimal number.

Implementation

static String? Function(String?) hexadecimal({
  String errorMessage = 'Please enter a valid hexadecimal number',
}) {
  return _build(errorMessage, (v) => v.isHexadecimal);
}