dispose method
void
dispose()
Disposes the allocated memory for the string array.
Implementation
void dispose() {
if (data != nullptr) {
for (var i = 0; i < capacity; i++) {
calloc.free(data[i]);
}
calloc.free(data);
data = nullptr;
}
}