length property
int
get
length
The number of UTF-16 code units in this zero-terminated UTF-16 string.
The UTF-16 code units of the strings are the non-zero code units up to the first zero code unit.
Implementation
int get length {
_ensureNotNullptr('length');
final codeUnits = cast<Uint16>();
return _length(codeUnits);
}