toNullableString method

String? toNullableString()

Creates a nullable String from this pointer. If this pointer is equal to nullptr, null is returned. Otherwise, the pointer is cast to Utf8 and converted to a Dart string.

Implementation

String? toNullableString() =>
    this == nullptr ? null : cast<Utf8>().toDartString();