byteLength property

int get byteLength

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

Implementation

@pragma('vm:prefer-inline')
int get byteLength => length * sizeOf<WCHAR>();