intToHex method
Converts an integer (int) value to a hexadecimal string (String).
This method converts the integer to its hexadecimal representation as a string.
Returns: A hexadecimal String representation of the int value.
Example:
255.intToHex(); // Returns 'ff'
6719.intToHex(); // Returns '1a3f'
0.intToHex(); // Returns '0'
Implementation
String? intToHex() => toRadixString(16);