toHex method

String toHex(
  1. int length
)

Implementation

String toHex(int length) => toRadixString(16).padLeft(length).take(length);