String toHex({int? outLen, Endian endian = Endian.big}) => (endian == Endian.big ? this : this.toList().reversed) .map((e) => e.hexByte) .join() .padLeft(outLen ?? 0, '0');