toUtf8 method

Pointer<Utf8> toUtf8(
  1. String? text
)

Implementation

ffi.Pointer<Utf8> toUtf8(String? text) {
  return text == null ? "".toNativeUtf8() : text.toNativeUtf8();
}