toHex method

String toHex({
  1. int minLength = 2,
})

Implementation

String toHex({int minLength = 2}) {
  return toRadixString(16).toUpperCase().padLeft(minLength, '0');
}