TEXT function Null safety

LPWSTR TEXT(
  1. String string
)

Converts a Dart string to a natively-allocated string.

The receiver is responsible for disposing its memory, typically by calling free when it has been used.

Implementation

LPWSTR TEXT(String string) => string.toNativeUtf16();