string property
String?
get
string
Returns dart String
Implementation
String? get string {
if (_ref == nullptr) return null;
var cString = JSStringGetCharactersPtr(_ref);
if (cString == nullptr) {
return null;
}
int cStringLength = JSStringGetLength(_ref);
return String.fromCharCodes(
Uint16List.view(
cString.cast<Uint16>().asTypedList(cStringLength).buffer,
0,
cStringLength,
),
);
}