onHex method

String onHex(
  1. dynamic hex
)

Returns a String with the background 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 onHex(dynamic hex) => (_chalk.onHex(hex))(this);