hex static method

TextInputFormatter hex({
  1. bool hashPrefix = false,
})

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);
}