length property

int get length

The number of UTF-16 code units in this string, excluding the terminating NUL character.

This corresponds to SysStringLen.

Implementation

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