dispose method
Disposes all the resources associated with the current frame.
Implementation
void dispose() {
codec?.dispose();
image?.dispose();
image = null;
}
Disposes all the resources associated with the current frame.
void dispose() {
codec?.dispose();
image?.dispose();
image = null;
}