byteLength property

int get byteLength

The length of the string in bytes, excluding the terminating NUL.

This corresponds to SysStringByteLen.

Implementation

@pragma('vm:prefer-inline')
int get byteLength => SysStringByteLen(this);