toHex static method

String toHex(
  1. int val
)

Implementation

static String toHex(int val) => '0x${val.toRadixString(16).padLeft(2, '0')}';