toHex method

String toHex()

returns a serialized version of the script in hex

Implementation

String toHex() {
  final bytes = toBytes();
  return bytesToHex(bytes);
}