toStringList method
Creates a List<String> from this pointer by copying the pointer's data.
length is the length of the array.
null is returned if the pointer is equal to nullptr.
Implementation
List<String>? toStringList(int length) {
if (this == nullptr) {
return null;
}
final List<String> list = [];
for (int i = 0; i < length; i++) {
list.add(this[i].toNullableString()!);
}
return list;
}