trimmedHexValue property

String trimmedHexValue

Returns hex representation of bytes contained in this memo until null byte (0x00) is found.

Example:

MemoHash memo = MemoHash("4142434445"); memo.getHexValue(); // 4142434445000000000000000000000000000000000000000000000000000000 memo.getTrimmedHexValue(); // 4142434445

Implementation

String get trimmedHexValue => this.hexValue.split("00")[0];