dispose method Null safety
Implementation
void dispose() {
if (isValid) {
malloc.free(pointer!);
pointer = null;
bytes = null;
}
}
void dispose() {
if (isValid) {
malloc.free(pointer!);
pointer = null;
bytes = null;
}
}