toHexString method

String toHexString({
  1. bool padded = true,
})

Implementation

String toHexString({bool padded = true}) {
  final hex = '${_hi.toHexString()}${_lo.toHexString()}';
  return padded ? hex : hex.replaceFirst(RegExp(r'^0+(?=.)'), '');
}