string property

String? string

Implementation

String? get string {
  if (_ref == nullptr) {
    return null;
  }
  final Pointer<js_bd.JSChar> characters = js_bd.JSStringGetCharactersPtr(_ref);
  if (characters == nullptr) {
    return null;
  }
  final int charactersLength = js_bd.JSStringGetLength(_ref);
  return String.fromCharCodes(Uint16List.view(characters.cast<Uint16>().asTypedList(charactersLength).buffer, 0, charactersLength));
}