string8 top-level property

  1. @Deprecated('Use string.utf8(lengthType: uint8) instead')
PayloadType<String> string8
final

Converts a string into an encoded UTF-8 list.

The length will be stored as a uint8. Therefore it has a byte length of 1 + len(value).

Usage:

payload.set(string8, 'Hello world');

Implementation

@Deprecated('Use string.utf8(lengthType: uint8) instead')
final string8 = string.utf8();