hex static method
Creates a formatter for hexadecimal input.
Parameters:
hashPrefix: Whether to require/add a '#' prefix.
Implementation
static TextInputFormatter hex({bool hashPrefix = false}) {
return _HexTextFormatter(hashPrefix: hashPrefix);
}