toDartString method

String toDartString()

Converts this HSTRING to a Dart String.

If this value is NULL, an empty Dart string is returned.

Implementation

String toDartString() {
  if (isNull) return '';
  final pwstr = WindowsGetStringRawBuffer(this, null);
  return pwstr.toDartString(length: length);
}