hexAdd0x function

String hexAdd0x(
  1. String hex
)

Implementation

String hexAdd0x(String hex) => hex.startsWith("0x") ? hex : "0x$hex";