toHex method
Encodes the elliptic curve point as a hexadecimal string with the specified encoding type. The default encoding type is 'compressed'.
Implementation
String toHex([EncodeType encodeType = EncodeType.comprossed]) {
final bytes = toBytes(encodeType);
return BytesUtils.toHexString(bytes);
}