toDartString method
Converts the pointer to a dart string using the utf8 encoding.
This is simply a shortcut to Int8ListX.toDartString, which is called on the data of the ptr.
Implementation
String toDartString({bool zeroTerminated = false}) => ptr
.cast<Int8>()
.asTypedList(count)
.toDartString(zeroTerminated: zeroTerminated);