hexin function

String hexin(
  1. String comp
)

Correct hex component for input (f -> ff)

Implementation

String hexin(String comp) => comp.length == 1 ? comp + comp : comp;