hex method

String hex(
  1. dynamic hex
)

Returns a String with the foreground color set to the passed in RGB Hex code. This dynamically accepts color hex codes as integer codes (0xAABBCC) or (0xABC) or as strings ('#AABBCC') or ('#ABC')

Implementation

String hex(dynamic hex) => (_chalk.hex(hex))(this);