toHex method

  1. @override
String toHex()
override

Converts this Uint256 to a hexadecimal string.

Returns a string representation of the Uint256 value in hexadecimal format.

Implementation

@override
String toHex() {
  final hexString = _value.toRadixString(16);
  return '0x${hexString.padLeft(64, '0')}';
}